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 02:51:57 +0000 (19:51 -0700)
commitd82f013b8c36f6f4e6ff014aabf408bd483a83d3
treed6606c53f415cb79d812a50811fda4631cc4e73c
parent37f8417572877c7c8c58400d2779248f1f7d74ed
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