aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/backlight/pcf50633-backlight.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/video/backlight/pcf50633-backlight.c b/drivers/video/backlight/pcf50633-backlight.c
index 0087396007e4..e87c7a3394f3 100644
--- a/drivers/video/backlight/pcf50633-backlight.c
+++ b/drivers/video/backlight/pcf50633-backlight.c
@@ -52,7 +52,7 @@ int pcf50633_bl_set_brightness_limit(struct pcf50633 *pcf, unsigned int limit)
52 pcf_bl->brightness_limit = limit & 0x3f; 52 pcf_bl->brightness_limit = limit & 0x3f;
53 backlight_update_status(pcf_bl->bl); 53 backlight_update_status(pcf_bl->bl);
54 54
55 return 0; 55 return 0;
56} 56}
57 57
58static int pcf50633_bl_update_status(struct backlight_device *bl) 58static int pcf50633_bl_update_status(struct backlight_device *bl)
@@ -136,8 +136,10 @@ static int pcf50633_bl_probe(struct platform_device *pdev)
136 136
137 pcf50633_reg_write(pcf_bl->pcf, PCF50633_REG_LEDDIM, pdata->ramp_time); 137 pcf50633_reg_write(pcf_bl->pcf, PCF50633_REG_LEDDIM, pdata->ramp_time);
138 138
139 /* Should be different from bl_props.brightness, so we do not exit 139 /*
140 * update_status early the first time it's called */ 140 * Should be different from bl_props.brightness, so we do not exit
141 * update_status early the first time it's called
142 */
141 pcf_bl->brightness = pcf_bl->bl->props.brightness + 1; 143 pcf_bl->brightness = pcf_bl->bl->props.brightness + 1;
142 144
143 backlight_update_status(pcf_bl->bl); 145 backlight_update_status(pcf_bl->bl);