]> git.baikalelectronics.ru Git - kernel.git/commit
pwm_backlight: avoid short blank screen while doing hibernation
authorHuayi Li <huayi.li@csr.com>
Wed, 9 Oct 2013 02:33:02 +0000 (10:33 +0800)
committerThierry Reding <thierry.reding@gmail.com>
Tue, 22 Oct 2013 07:26:12 +0000 (09:26 +0200)
commit910359a234d0f61fc69237d974a05e8ca138e383
tree411889b86b4ceb5b7aa1beacb51ce87c4019f390
parent3aa3bc4a291795cfb43e413a6f2e663ac615d09a
pwm_backlight: avoid short blank screen while doing hibernation

Use SIMPLE_DEV_PM_OPS macro will initialize the member "freeze"
and "thaw" of pwm_backlight_pm_ops as below,
.freeze = suspend_fn,
.thaw = resume_fn,
then during the process of making hibernation snapshot, screen
will be blank at the moment of freezing, and then light at the
moment of thawing.
this is not the right user experience for suspending to disk.

so this patch drops freeze and thaw callback, make the LCD is
always lighting before the final shutdown.

Signed-off-by: Huayi Li <huayi.li@csr.com>
Signed-off-by: Barry Song <Baohua.Song@csr.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/video/backlight/pwm_bl.c