Commit 7f14e6b9 authored by Jacek Anaszewski's avatar Jacek Anaszewski Committed by Bryan Wu

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: default avatarJacek Anaszewski <j.anaszewski@samsung.com>
Acked-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: default avatarBryan Wu <cooloney@gmail.com>
parent 38419612
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment