]> git.dujemihanovic.xyz Git - u-boot.git/commit
regulator: rk8xx: Use buck variable consistently
authorJonas Karlman <jonas@kwiboo.se>
Tue, 17 Sep 2024 20:59:18 +0000 (20:59 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Fri, 27 Sep 2024 10:20:49 +0000 (18:20 +0800)
commit7210de40a25a222043aed1348ec667a5ccc204b6
treeef179d22cd1c907fab2410d3f5cc3ea92a4e8aec
parent596465138175cd7e4171cad1e68a2ef7c5c002bc
regulator: rk8xx: Use buck variable consistently

The buck variable is zero based, i.e. buck=0 match BUCK1 in datasheet.

Remove any buck + 1 calculation to be more consistent in usage of the
buck variable across the different RK8xx variants in the driver.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
drivers/power/regulator/rk8xx.c