Skip to content

Commit

Permalink
leds: aat1290: Remove unused field 'torch_brightness' from 'struct aa…
Browse files Browse the repository at this point in the history
…t1290_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>
  • Loading branch information
Christophe JAILLET authored and Lee Jones committed May 2, 2024
1 parent 3b29c7b commit 678ba7d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/leds/flash/leds-aat1290.c
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 678ba7d

Please sign in to comment.