mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
leds: lp3944: fix sparse warning
Fix sparse warning appeared after changing brightness type in the leds.h from int to enum led_brightness. Signed-off-by: Jacek Anaszewski <[email protected]> Acked-by: Kyungmin Park <[email protected]> Cc: Richard Purdie <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
This commit is contained in:
parent
3841961269
commit
7f14e6b9c3
1 changed files with 2 additions and 1 deletions
|
|
@ -335,7 +335,8 @@ static int lp3944_configure(struct i2c_client *client,
|
|||
}
|
||||
|
||||
/* to expose the default value to userspace */
|
||||
led->ldev.brightness = led->status;
|
||||
led->ldev.brightness =
|
||||
(enum led_brightness) led->status;
|
||||
|
||||
/* Set the default led status */
|
||||
err = lp3944_led_set(led, led->status);
|
||||
|
|
|
|||
Loading…
Reference in a new issue