projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b29c7b
)
leds: aat1290: Remove unused field 'torch_brightness' from 'struct aat1290_led'
author
Christophe JAILLET
<christophe.jaillet@wanadoo.fr>
Sun, 28 Apr 2024 15:34:55 +0000
(17:34 +0200)
committer
Lee Jones
<lee@kernel.org>
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 <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>
drivers/leds/flash/leds-aat1290.c
patch
|
blob
|
history
diff --git
a/drivers/leds/flash/leds-aat1290.c
b/drivers/leds/flash/leds-aat1290.c
index 0195935a7c990314059b3d1e9d37487de78d83b9..e8f9dd29359262d9230d9772cf1e611a5b6b237f 100644
(file)
--- 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(