Skip to content

Commit d5c6c9f

Browse files
committed
Merge tag 'regulator-fix-v6.8-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator
Pull regulator fixes from Mark Brown: "A couple of small fixes for the rk808 driver, the regulator voltage configurations were incorrectly described. The changes are not expected to have practical impact but given that we're dealing with power it's generally better to follow the hardware specification as closely as we can to avoid unexpected stresses" * tag 'regulator-fix-v6.8-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator: regulator: rk808: fix LDO range on RK806 regulator: rk808: fix buck range on RK806
2 parents 135288b + 6717ff5 commit d5c6c9f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/regulator/rk808-regulator.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,14 +1017,14 @@ static const struct regulator_desc rk805_reg[] = {
10171017
};
10181018

10191019
static const struct linear_range rk806_buck_voltage_ranges[] = {
1020-
REGULATOR_LINEAR_RANGE(500000, 0, 160, 6250), /* 500mV ~ 1500mV */
1021-
REGULATOR_LINEAR_RANGE(1500000, 161, 237, 25000), /* 1500mV ~ 3400mV */
1022-
REGULATOR_LINEAR_RANGE(3400000, 238, 255, 0),
1020+
REGULATOR_LINEAR_RANGE(500000, 0, 159, 6250), /* 500mV ~ 1500mV */
1021+
REGULATOR_LINEAR_RANGE(1500000, 160, 235, 25000), /* 1500mV ~ 3400mV */
1022+
REGULATOR_LINEAR_RANGE(3400000, 236, 255, 0),
10231023
};
10241024

10251025
static const struct linear_range rk806_ldo_voltage_ranges[] = {
1026-
REGULATOR_LINEAR_RANGE(500000, 0, 232, 12500), /* 500mV ~ 3400mV */
1027-
REGULATOR_LINEAR_RANGE(3400000, 233, 255, 0), /* 500mV ~ 3400mV */
1026+
REGULATOR_LINEAR_RANGE(500000, 0, 231, 12500), /* 500mV ~ 3400mV */
1027+
REGULATOR_LINEAR_RANGE(3400000, 232, 255, 0),
10281028
};
10291029

10301030
static const struct regulator_desc rk806_reg[] = {

0 commit comments

Comments
 (0)