]> git.karo-electronics.de Git - karo-tx-linux.git/commit
backlight: convert from legacy pm ops to dev_pm_ops
authorShuah Khan <shuah.kh@samsung.com>
Wed, 19 Jun 2013 00:07:14 +0000 (10:07 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:27:01 +0000 (17:27 +1000)
commit1941e03299bc5a2cae729d70bc80560546542697
tree31ce7a186c25c4cf8440f1b24e9fe28c24a556c0
parentf2d23278615abb08b2a68937e551b8f889b35715
backlight: convert from legacy pm ops to dev_pm_ops

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.

Signed-off-by: Shuah Khan <shuah.kh@samsung.com>
Cc: Shuah Khan <shuahkhan@gmail.com>
Cc: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/video/backlight/backlight.c