mirror of
https://github.com/torvalds/linux.git
synced 2026-12-01 11:03:37 +00:00
Convert drivers/video/backlight/class to use dev_pm_ops for power management and remove Legacy PM ops hooks. With this change, backlight class registers suspend/resume callbacks via class->pm (dev_pm_ops) instead of Legacy class->suspend/resume. When __device_suspend() runs call-backs, it will find class->pm ops for the backlight class. [[email protected]: add CONFIG_PM_SLEEP to suspend/resume functions] Signed-off-by: Shuah Khan <[email protected]> Signed-off-by: Jingoo Han <[email protected]> Cc: Shuah Khan <[email protected]> Cc: Jingoo Han <[email protected]> Cc: Shuah Khan <[email protected]> Cc: Arnd Bergmann <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>