summaryrefslogtreecommitdiff
path: root/drivers/regulator/bcm590xx-regulator.c
diff options
context:
space:
mode:
authorTim Kryger <tim.kryger@linaro.org>2014-04-10 13:04:00 -0700
committerMark Brown <broonie@linaro.org>2014-04-10 23:10:36 +0100
commit1e7914058e3533d905618dd00a36499c8d29e7be (patch)
tree39e4df315f2dc6493696657170c6292a767e77f1 /drivers/regulator/bcm590xx-regulator.c
parent5481b348e80fb280ff9eaa17ad99a5b592c7e145 (diff)
downloadlinux-1e7914058e3533d905618dd00a36499c8d29e7be.tar.gz
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/bcm590xx-regulator.c')
-rw-r--r--drivers/regulator/bcm590xx-regulator.c1
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 {
#define BCM590XX_REG_RANGES(_name, _ranges) \
{ \
.name = #_name, \
+ .n_voltages = 64, \
.n_linear_ranges = ARRAY_SIZE(_ranges), \
.linear_ranges = _ranges, \
}