]> git.dujemihanovic.xyz Git - u-boot.git/commit
regulator: rk8xx: Return correct voltage for switchout converters
authorshengfei Xu <xsf@rock-chips.com>
Mon, 21 Aug 2023 22:30:26 +0000 (22:30 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Sat, 7 Oct 2023 08:49:41 +0000 (16:49 +0800)
commitbb657ffdd688dc08073734a402914ec0a8492d53
tree57c8ada33666b10d119f025eeac3b44782ca23e8
parent04c38c6c4936f353de36be60655f402922292a37
regulator: rk8xx: Return correct voltage for switchout converters

The voltage value for switchout converters is always reported as 0 uV.
When the switch is enabled, it's voltage is same as input supply.

Fix this by implementing get_value for switchout converters.

Fixes: ee30068fa574 ("power: pmic: rk809: support rk809 pmic")
Signed-off-by: shengfei Xu <xsf@rock-chips.com>
[jonas@kwiboo.se: fix checkpatch error, update commit message]
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
drivers/power/regulator/rk8xx.c