]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 14 Dec 2022 13:02:53 +0000 (14:02 +0100)
commit36e7e6127266193b38eecf1bc77ecdde4bb3d5b2
tree28696e2e7b88d6a06256f3c402aae5342a2109bf
parentad1d113a5c3011f899d1cab158e8d59430561002
regulator: twl6030: fix get status of twl6032 regulators

[ Upstream commit 31a6297b89aabc81b274c093a308a7f5b55081a7 ]

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>
(cherry picked from commit fd3768597d2a83efdcd47879b11184ac1cc21256)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
drivers/regulator/twl6030-regulator.c