mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
backlight: pwm_bl: do not suspend in lite sleep mode
Signed-off-by: Weixin Zhou <zwx@rock-chips.com> Change-Id: Ia522f69c3edc939d00ea4aec87568d8df8af4a58
This commit is contained in:
@@ -626,6 +626,9 @@ static int pwm_backlight_suspend(struct device *dev)
|
||||
struct backlight_device *bl = dev_get_drvdata(dev);
|
||||
struct pwm_bl_data *pb = bl_get_data(bl);
|
||||
|
||||
if (mem_sleep_current == PM_SUSPEND_MEM_LITE)
|
||||
return 0;
|
||||
|
||||
if (pb->notify)
|
||||
pb->notify(pb->dev, 0);
|
||||
|
||||
@@ -641,6 +644,9 @@ static int pwm_backlight_resume(struct device *dev)
|
||||
{
|
||||
struct backlight_device *bl = dev_get_drvdata(dev);
|
||||
|
||||
if (mem_sleep_current == PM_SUSPEND_MEM_LITE)
|
||||
return 0;
|
||||
|
||||
backlight_update_status(bl);
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user