瀏覽代碼

leds: make brightness type consistent across whole subsystem

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>
Jacek Anaszewski 11 年之前
父節點
當前提交
d8082827d8
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      include/linux/leds.h

+ 2 - 2
include/linux/leds.h

@@ -31,8 +31,8 @@ enum led_brightness {
 
 
 struct led_classdev {
 struct led_classdev {
 	const char		*name;
 	const char		*name;
-	int			 brightness;
-	int			 max_brightness;
+	enum led_brightness	 brightness;
+	enum led_brightness	 max_brightness;
 	int			 flags;
 	int			 flags;
 
 
 	/* Lower 16 bits reflect status */
 	/* Lower 16 bits reflect status */