Skip to contentSkip to conversation

regulator: bcm590xx: Set n_voltages for linear reg

PATCH Applied Tim Kryger 3 participants 3 messages Apr 10, 2014 Voltage and current regulator framework

lore
Share & tools
lore

Tim Kryger

author
#0 lore raw

PATCH 1/1 regulator: bcm590xx: Set n_voltages for linear reg

Fix the macro used to define linear range regulators to include the number of voltages.

---
 drivers/regulator/bcm590xx-regulator.c |    1 +
 1 file changed, 1 insertion(+)
drivers/regulator/bcm590xx-regulator.c +1 -0
index ab08ca7..c3750c5 100644
@@ -123,6 +123,7 @@ struct bcm590xx_info {
 #define BCM590XX_REG_RANGES(_name, _ranges) \
 	{ \
 		.name = #_name, \
+		.n_voltages = 64, \
 		.n_linear_ranges = ARRAY_SIZE(_ranges), \
 		.linear_ranges = _ranges, \
 	}
Signature · 1 line
1.7.9.5
Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Tim Kryger

Fix the macro used to define linear range regulators to include the number of voltages.

Looks good.

Mark: will you take this for 3.15 fixes?

-Matt

Quoted 19 lines
---
 drivers/regulator/bcm590xx-regulator.c |    1 +
 1 file changed, 1 insertion(+)
drivers/regulator/bcm590xx-regulator.c +1 -0
index ab08ca7..c3750c5 100644
@@ -123,6 +123,7 @@ struct bcm590xx_info {
 #define BCM590XX_REG_RANGES(_name, _ranges) \
 	{ \
 		.name = #_name, \
+		.n_voltages = 64, \
 		.n_linear_ranges = ARRAY_SIZE(_ranges), \
 		.linear_ranges = _ranges, \
 	}
Signature · 1 line
1.7.9.5
maintainer Applied
#2 lore raw
In reply to Tim Kryger
Quoted 2 lines · Tim Kryger

Fix the macro used to define linear range regulators to include the number of voltages.

Applied, thanks.