Skip to contentSkip to conversation

regulator: rk808: Fix n_voltages for DCDC4

PATCH Applied Axel Lin 2 participants 2 messages Sep 2, 2014 Voltage and current regulator framework

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 regulator: rk808: Fix n_voltages for DCDC4

The min_sel is 0, max_sel is 15, so n_voltages should be 16.

---
 drivers/regulator/rk808-regulator.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/regulator/rk808-regulator.c +1 -1
index 0d11df1..0da8867 100644
@@ -146,7 +146,7 @@ static const struct regulator_desc rk808_reg[] = {
 		.id = RK808_ID_DCDC4,
 		.ops = &rk808_reg_ops,
 		.type = REGULATOR_VOLTAGE,
-		.n_voltages = 17,
+		.n_voltages = 16,
 		.linear_ranges = rk808_buck4_voltage_ranges,
 		.n_linear_ranges = ARRAY_SIZE(rk808_buck4_voltage_ranges),
 		.vsel_reg = RK808_BUCK4_ON_VSEL_REG,
Signature · 1 line
1.9.1
maintainer Applied
#1 lore raw
Quoted 1 line · Axel Lin

The min_sel is 0, max_sel is 15, so n_voltages should be 16.

Applied, thanks.