Skip to content

Commit 678ba7d

Browse files
tititiou36lag-linaro
authored andcommitted
leds: aat1290: Remove unused field 'torch_brightness' from 'struct aat1290_led'
In 'struct aat1290_led', the 'torch_brightness' field is unused. Remove it. Found with cppcheck, unusedStructMember. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Link: https://lore.kernel.org/r/f7c8c22242544b11e95d9a77d7d0ea17f5a24fd5.1714318454.git.christophe.jaillet@wanadoo.fr Signed-off-by: Lee Jones <lee@kernel.org>
1 parent 3b29c7b commit 678ba7d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/leds/flash/leds-aat1290.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ struct aat1290_led {
7777
int *mm_current_scale;
7878
/* device mode */
7979
bool movie_mode;
80-
/* brightness cache */
81-
unsigned int torch_brightness;
8280
};
8381

8482
static struct aat1290_led *fled_cdev_to_led(

0 commit comments

Comments
 (0)