mfd: adp5520: Restore mode bits on resume
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 19 Feb 2013 10:51:22 +0000 (11:51 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 8 Apr 2013 14:48:06 +0000 (16:48 +0200)
commitc6cc25fda58da8685ecef3f179adc7b99c8253b2
tree6b6493d91317116023a889aba164caed00c6f2c2
parent7aa3d7c8d5ca941e70183b8a7c980beff6edf534
mfd: adp5520: Restore mode bits on resume

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.

Cc: stable@vger.kernel.org
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>
drivers/mfd/adp5520.c