Skip to content

Commit

Permalink
leds: mt6370: Remove unused field 'reg_cfgs' from 'struct mt6370_priv'
Browse files Browse the repository at this point in the history
In 'struct mt6370_priv', the 'reg_cfgs' field is unused. Moreover
'struct reg_cfg' isn't defined anywhere, so remove it.

Found with cppcheck, unusedStructMember.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/e389be5e1012dc05fc2641123883ca3b0747525a.1714328839.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Lee Jones <lee@kernel.org>
  • Loading branch information
Christophe JAILLET authored and Lee Jones committed May 2, 2024
1 parent dd66d05 commit f2994f5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/leds/rgb/leds-mt6370-rgb.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ struct mt6370_priv {
struct regmap_field *fields[F_MAX_FIELDS];
const struct reg_field *reg_fields;
const struct linear_range *ranges;
struct reg_cfg *reg_cfgs;
const struct mt6370_pdata *pdata;
unsigned int leds_count;
unsigned int leds_active;
Expand Down

0 comments on commit f2994f5

Please sign in to comment.