]> 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>
Fri, 7 Jun 2013 00:08:42 +0000 (10:08 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 7 Jun 2013 05:42:43 +0000 (15:42 +1000)
commit6c365a1dce45fd99a7cc0a9dc17ddcae6bd1b6ca
tree45eb0f18e4d76d1f4220da6300e40b216bb45c30
parentd137631918e21f5aa023204a6e360f960f8c3bfe
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