diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2024-04-28 17:34:55 +0200 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2024-05-02 18:09:04 +0100 |
commit | 678ba7d25467c06850d0d2922108573ea7346a48 (patch) | |
tree | fb9732b74c5486920da15fd4c7f89a4b503398de /drivers/leds/flash | |
parent | 3b29c7b9f701e5afbe6b536eb2744acb25cf5bfd (diff) | |
download | lwn-678ba7d25467c06850d0d2922108573ea7346a48.tar.gz lwn-678ba7d25467c06850d0d2922108573ea7346a48.zip |
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>
Diffstat (limited to 'drivers/leds/flash')
-rw-r--r-- | drivers/leds/flash/leds-aat1290.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/leds/flash/leds-aat1290.c b/drivers/leds/flash/leds-aat1290.c index 0195935a7c99..e8f9dd293592 100644 --- a/drivers/leds/flash/leds-aat1290.c +++ b/drivers/leds/flash/leds-aat1290.c @@ -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( |