diff options
| author | Joseph Chen <[email protected]> | 2023-08-21 22:30:25 +0000 |
|---|---|---|
| committer | Kever Yang <[email protected]> | 2023-10-07 16:49:41 +0800 |
| commit | 04c38c6c4936f353de36be60655f402922292a37 (patch) | |
| tree | fa34da58563d33b5686305d56c0f40b9236baa3d /include/linux | |
| parent | d99fb64a98af3bebf6b0c134291c4fb89e177aa2 (diff) | |
regulator: rk8xx: Return correct voltage for buck converters
Information from the first range group is always used to calculate the
voltage returned for buck converters. This may result in wrong voltage
reported back to the regulator_get_value caller.
Traverse all the possible BUCK ranges to fix this issue.
Fixes: addd062beacc ("power: pmic: rk816: support rk816 pmic")
Fixes: b62280745e55 ("power: pmic: rk805: support rk805 pmic")
Fixes: b4a35574b38d ("power: pmic: rk817: support rk817 pmic")
Fixes: ee30068fa574 ("power: pmic: rk809: support rk809 pmic")
Signed-off-by: Joseph Chen <[email protected]>
[[email protected]: fix checkpatch error, simplify buck get_value, update commit message]
Signed-off-by: Jonas Karlman <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Reviewed-by: Kever Yang <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
