regulator: da9063: Fix get_mode() functions to read sleep field
authorAdam Thomson <Adam.Thomson.Opensource@diasemi.com>
Tue, 24 Mar 2020 09:25:16 +0000 (09:25 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 24 Mar 2020 16:52:25 +0000 (16:52 +0000)
commitfc69bab1ec382d16210ef6bb2d3f117a37169de2
tree1d81631774159e68b73a3964b7e4648ca010b906
parent99f75ce6661993b8ba7ae0c94e95cb25454fdf1e
regulator: da9063: Fix get_mode() functions to read sleep field

get_mode() is used to retrieve the active mode state. Settings-A
config is used during active state, whilst Settings-B is for
suspend. This means we only need to check the sleep field of each
buck and LDO as that field solely relates to Settings-A config.

This change is a clone of the get_mode() update which was committed
as part of:
 - regulator: da9062: fix suspend_enable/disable preparation
   [a72865f057820ea9f57597915da4b651d65eb92f]

Signed-off-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
Link: https://lore.kernel.org/r/20200324092516.60B5C3FB8D@swsrvapps-01.diasemi.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/da9063-regulator.c