.pwm_id = PWM_ID,
.min_brightness=20,
.max_brightness=255,
- .brightness_mode =1,
+ .brightness_mode =BRIGHTNESS_MODE_CONIC,
.bl_ref = PWM_EFFECT_VALUE,
.io_init = rk29_backlight_io_init,
.io_deinit = rk29_backlight_io_deinit,
u16 num_chipselect;
};
+enum {
+ BRIGHTNESS_MODE_LINE=0,
+ BRIGHTNESS_MODE_CONIC =1,
+};
+
+
struct rk29_bl_info {
u32 pwm_id;
u32 bl_ref;
brightness = bl->props.brightness;
- if(!rk29_bl_info->brightness_mode)
+ if(rk29_bl_info->brightness_mode==BRIGHTNESS_MODE_LINE)
brightness=rk29_bl_val_scalor_line(rk29_bl_info,brightness);
else
brightness=rk29_bl_val_scalor_conic(rk29_bl_info,brightness);