Skip to content

Commit

Permalink
leds: lp3944: fix sparse warning
Browse files Browse the repository at this point in the history
Fix sparse warning appeared after changing brightness
type in the leds.h from int to enum led_brightness.

Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
  • Loading branch information
Jacek Anaszewski authored and Bryan Wu committed Sep 11, 2014
1 parent 3841961 commit 7f14e6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/leds/leds-lp3944.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7f14e6b

Please sign in to comment.