]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: twl6030: fix get status of twl6032 regulators
authorAndreas Kemnade <andreas@kemnade.info>
Sun, 20 Nov 2022 22:12:08 +0000 (23:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Dec 2022 10:30:41 +0000 (11:30 +0100)
commit0b2cd43f8d7432a9e86f01c228af08bf6685f345
tree2815902b9c71871830ef7cd0acf437b8b7555476
parentc6c050a64fd99442e542e00a1a6074ac9e2e4376
regulator: twl6030: fix get status of twl6032 regulators

[ Upstream commit b188d2b0155cf04783fc1da80e4aa5b389623924 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/regulator/twl6030-regulator.c