regulator: max77802: Fill regulator modes translation callback
authorJavier Martinez Canillas <javier.martinez@collabora.co.uk>
Tue, 11 Nov 2014 12:04:44 +0000 (13:04 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 26 Nov 2014 19:42:47 +0000 (19:42 +0000)
commit45fc84c668ba6cc08cbae74042be838bf9283d98
tree9008bbdf25b53ebd9bd828d2093d36b926bbee56
parentbf66c48d026d0ea20a3e04fc32fb470e692707a9
regulator: max77802: Fill regulator modes translation callback

The max77802 PMIC regulators output can be configured in one of two
modes: Output ON (normal) and Output ON in Low Power Mode. Some of
the regulators support their operating mode to be changed on startup
or by consumers when the system is running while others only support
their operating mode to be changed while the system has entered in a
suspend state.

Use the max77802_map_mode() function to translate the device specific
modes to the standard operating modes as used by the regulator core.

Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/max77802.c