mfd: adp5520: Restore mode bits on resume
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 19 Feb 2013 10:51:22 +0000 (11:51 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 May 2013 03:33:15 +0000 (20:33 -0700)
commite3038ace08e1e66f7476452c0195dd7ef0729fbb
tree0ff62e135bf8bd2d042b3f29fdda40e3f0593cec
parentc6bc1db00189090048fe29dddf0e05756fae9567
mfd: adp5520: Restore mode bits on resume

commit c6cc25fda58da8685ecef3f179adc7b99c8253b2 upstream.

The adp5520 unfortunately also clears the BL_EN bit when the nSTNDBY bit is
cleared. So we need to make sure to restore it during resume if it was set
before suspend.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mfd/adp5520.c