Re: [PATCH 2/3] leds: make brightness type consistent across whole subsystem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Aug 7, 2014 at 5:10 AM, Jacek Anaszewski
<j.anaszewski@xxxxxxxxxxx> 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 <j.anaszewski@xxxxxxxxxxx>
> Acked-by: Kyungmin Park <kyungmin.park@xxxxxxxxxxx>
> Cc: Bryan Wu <cooloney@xxxxxxxxx>
> Cc: Richard Purdie <rpurdie@xxxxxxxxx>
> ---
>  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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux