diff options
author | Andy Green <andy@openmoko.com> | 2008-11-19 17:09:51 +0000 |
---|---|---|
committer | Andy Green <agreen@pads.home.warmcat.com> | 2008-11-19 17:09:51 +0000 |
commit | 2775b40e6679a921c5ecab729e021176fef56fb6 (patch) | |
tree | e7ffa7fa8ad88a5ca47876ea084439a972b47f7e /drivers/i2c | |
parent | 49a29fe542da56921c181955329a73478d1ec536 (diff) |
fix-pcf50633-platform-backlight-resume-ramp-setting.patch
Signed-off-by: Andy Green <andy@openmoko.com>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/chips/pcf50633.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/i2c/chips/pcf50633.c b/drivers/i2c/chips/pcf50633.c index bbc8ae6e745..67459935c3b 100644 --- a/drivers/i2c/chips/pcf50633.c +++ b/drivers/i2c/chips/pcf50633.c @@ -2476,10 +2476,12 @@ void pcf50633_backlight_resume(struct pcf50633_data *pcf) { dev_info(&pcf->client.dev, "pcf50633_backlight_resume\n"); - /* we force the backlight on in fact */ - reg_write(pcf, PCF50633_REG_LEDDIM, 1); + /* platform defines resume ramp speed */ + reg_write(pcf, PCF50633_REG_LEDDIM, + pcf->pdata->resume_backlight_ramp_speed); reg_write(pcf, PCF50633_REG_LEDOUT, pcf->standby_regs.misc[ PCF50633_REG_LEDOUT - PCF50633_REG_AUTOOUT]); + /* we force the backlight on in fact */ reg_write(pcf, PCF50633_REG_LEDENA, pcf->standby_regs.misc[ PCF50633_REG_LEDENA - PCF50633_REG_AUTOOUT] | 1); } |