regulator: twl6030: fix get status of twl6032 regulators
authorAndreas Kemnade <andreas@kemnade.info>
Sun, 20 Nov 2022 22:12:08 +0000 (23:12 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 22 Nov 2022 12:23:06 +0000 (12:23 +0000)
commit31a6297b89aabc81b274c093a308a7f5b55081a7
treed92d68d53f666dbf1e8be5818027cf6ead5c1c24
parent3d6c982b26db94cc21bc9f7784f63e8286b7be62
regulator: twl6030: fix get status of twl6032 regulators

Status is reported as always off in the 6032 case. Status
reporting now matches the logic in the setters. Once of
the differences to the 6030 is that there are no groups,
therefore the state needs to be read out in the lower bits.

Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
Link: https://lore.kernel.org/r/20221120221208.3093727-3-andreas@kemnade.info
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/twl6030-regulator.c