Skip to content

Commit f2994f5

Browse files
tititiou36lag-linaro
authored andcommitted
leds: mt6370: Remove unused field 'reg_cfgs' from 'struct mt6370_priv'
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>
1 parent dd66d05 commit f2994f5

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/leds/rgb/leds-mt6370-rgb.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ struct mt6370_priv {
149149
struct regmap_field *fields[F_MAX_FIELDS];
150150
const struct reg_field *reg_fields;
151151
const struct linear_range *ranges;
152-
struct reg_cfg *reg_cfgs;
153152
const struct mt6370_pdata *pdata;
154153
unsigned int leds_count;
155154
unsigned int leds_active;

0 commit comments

Comments
 (0)