]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
leds: make brightness type consistent across whole subsystem
authorJacek Anaszewski <j.anaszewski@samsung.com>
Thu, 7 Aug 2014 12:10:23 +0000 (05:10 -0700)
committerBryan Wu <cooloney@gmail.com>
Thu, 11 Sep 2014 23:55:25 +0000 (16:55 -0700)
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.

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>
include/linux/leds.h

index 4be2d7623d9eef15fd17e38ab96165be51654e19..f2e1cbc257059d75951001c2248b8e7cf91a690e 100644 (file)
@@ -31,8 +31,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 */