regulator: bcm590xx: Set n_voltages for linear reg
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.
Signed-off-by Tim Kryger <[email protected]>
--- drivers/regulator/bcm590xx-regulator.c | 1 + 1 file changed, 1 insertion(+)
drivers/regulator/bcm590xx-regulator.c +1 -0
@@ -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
Quoted 4 lines · Tim Kryger
Fix the macro used to define linear range regulators to include the number of voltages.
Signed-off-by Tim Kryger <[email protected]>
Looks good.
Acked-by Matt Porter <[email protected]>
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@@ -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
Quoted 2 lines · Tim Kryger
Fix the macro used to define linear range regulators to include the number of voltages.
Applied, thanks.