]> Git Repo - J-linux.git/commitdiff
leds: aat1290: Remove unused field 'torch_brightness' from 'struct aat1290_led'
authorChristophe JAILLET <[email protected]>
Sun, 28 Apr 2024 15:34:55 +0000 (17:34 +0200)
committerLee Jones <[email protected]>
Thu, 2 May 2024 17:09:04 +0000 (18:09 +0100)
In 'struct aat1290_led', the 'torch_brightness' field is unused. Remove it.

Found with cppcheck, unusedStructMember.

Signed-off-by: Christophe JAILLET <[email protected]>
Link: https://lore.kernel.org/r/f7c8c22242544b11e95d9a77d7d0ea17f5a24fd5.1714318454.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Lee Jones <[email protected]>
drivers/leds/flash/leds-aat1290.c

index 0195935a7c990314059b3d1e9d37487de78d83b9..e8f9dd29359262d9230d9772cf1e611a5b6b237f 100644 (file)
@@ -77,8 +77,6 @@ struct aat1290_led {
        int *mm_current_scale;
        /* device mode */
        bool movie_mode;
-       /* brightness cache */
-       unsigned int torch_brightness;
 };
 
 static struct aat1290_led *fled_cdev_to_led(
This page took 0.048454 seconds and 4 git commands to generate.