On Thu, Aug 7, 2014 at 5:10 AM, Jacek Anaszewski
<[email protected]> wrote:
> Documentations states that brightness units type is enum led_brightness
> and this is the type used by the led API functions. Adjust the type
> of brightness variables in the struct led_classdev accordingly.
>

Applied into my -devel branch

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]>
> ---
>  include/linux/leds.h |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/include/linux/leds.h b/include/linux/leds.h
> index bc959c5..bc221d11 100644
> --- a/include/linux/leds.h
> +++ b/include/linux/leds.h
> @@ -30,8 +30,8 @@ enum led_brightness {
>
>  struct led_classdev {
>         const char              *name;
> -       int                      brightness;
> -       int                      max_brightness;
> +       enum led_brightness      brightness;
> +       enum led_brightness      max_brightness;
>         int                      flags;
>
>         /* Lower 16 bits reflect 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