rk3168_86v: add maxbrightness restriction
authorhjc <hjc@rock-chips.com>
Mon, 25 Feb 2013 01:11:24 +0000 (09:11 +0800)
committerhjc <hjc@rock-chips.com>
Mon, 25 Feb 2013 01:11:24 +0000 (09:11 +0800)
arch/arm/mach-rk30/board-rk3168-86v.c

index dfe682afe9f068dac20d84077a05be975a71d70e..02946cb6e9c4f5c8aaef2f544e98ac866901f445 100755 (executable)
@@ -278,6 +278,8 @@ static int rk29_backlight_pwm_resume(void)
 
 static struct rk29_bl_info rk29_bl_info = {
         .min_brightness = 30,
+        .max_brightness=255,
+        .brightness_mode =1,
        .pre_div = 20 * 1000,  // pwm output clk: 20k;
        .pwm_id = PWM_ID,
        .bl_ref = PWM_EFFECT_VALUE,