leds: mt6370: Remove unused field 'reg_cfgs' from 'struct mt6370_priv'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 28 Apr 2024 18:27:31 +0000 (20:27 +0200)
committerLee Jones <lee@kernel.org>
Thu, 2 May 2024 17:12:27 +0000 (18:12 +0100)
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>
drivers/leds/rgb/leds-mt6370-rgb.c

index 448d0da118480e739e2fec9cb3ea81af683f13dc..359ef00498b43a637b402354884db53285f68de8 100644 (file)
@@ -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;