On Fri, Aug 8, 2014 at 12:09 AM, Jacek Anaszewski
<[email protected]> wrote:
> Fix sparse warning appeared after changing brightness
> type in the leds.h from int to enum led_brightness.
>

OK, merged.
Thanks,
-Bryan

> Signed-off-by: Jacek Anaszewski <[email protected]>
> Acked-by: Kyungmin Park <[email protected]>
> Cc: Bryan Wu <[email protected]>
> Cc: Richard Purdie <[email protected]>
> ---
>  drivers/leds/leds-lp3944.c |    3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/leds/leds-lp3944.c b/drivers/leds/leds-lp3944.c
> index 8e1abdc..53144fb 100644
> --- a/drivers/leds/leds-lp3944.c
> +++ b/drivers/leds/leds-lp3944.c
> @@ -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);
> --
> 1.7.9.5
>
--
To unsubscribe from this list: send the line "unsubscribe linux-leds" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to