diff options
author | Tim Kryger <tim.kryger@linaro.org> | 2014-04-10 16:04:00 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-04-10 18:10:36 -0400 |
commit | 1e7914058e3533d905618dd00a36499c8d29e7be (patch) | |
tree | 39e4df315f2dc6493696657170c6292a767e77f1 /drivers/regulator | |
parent | 5481b348e80fb280ff9eaa17ad99a5b592c7e145 (diff) |
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 <tim.kryger@linaro.org>
Acked-by: Matt Porter <mporter@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/bcm590xx-regulator.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/bcm590xx-regulator.c b/drivers/regulator/bcm590xx-regulator.c index ab08ca7cfb08..c3750c5b382b 100644 --- a/drivers/regulator/bcm590xx-regulator.c +++ b/drivers/regulator/bcm590xx-regulator.c | |||
@@ -123,6 +123,7 @@ struct bcm590xx_info { | |||
123 | #define BCM590XX_REG_RANGES(_name, _ranges) \ | 123 | #define BCM590XX_REG_RANGES(_name, _ranges) \ |
124 | { \ | 124 | { \ |
125 | .name = #_name, \ | 125 | .name = #_name, \ |
126 | .n_voltages = 64, \ | ||
126 | .n_linear_ranges = ARRAY_SIZE(_ranges), \ | 127 | .n_linear_ranges = ARRAY_SIZE(_ranges), \ |
127 | .linear_ranges = _ranges, \ | 128 | .linear_ranges = _ranges, \ |
128 | } | 129 | } |