backlight: lp855x: fix initial brightness type
authorKim, Milo <Milo.Kim@ti.com>
Mon, 29 Apr 2013 23:18:04 +0000 (16:18 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 30 Apr 2013 01:28:18 +0000 (18:28 -0700)
Valid range of the brightness is from 0 to 255, so initial brightness
is changed from integer to u8.

Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/platform_data/lp855x.h

index e0954dfea7ee41b6297f8420becc13e1ba140b31..a4ed0bd65fdabf2958cc322f45b1f33bfa75dd5d 100644 (file)
@@ -124,7 +124,7 @@ struct lp855x_rom_data {
 struct lp855x_platform_data {
        const char *name;
        u8 device_control;
-       int initial_brightness;
+       u8 initial_brightness;
        unsigned int period_ns;
        u8 load_new_rom_data;
        int size_program;