summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/bcm590xx-regulator.c
diff options
context:
space:
mode:
authorTim Kryger <tim.kryger@linaro.org>2014-04-10 22:04:00 +0200
committerMark Brown <broonie@linaro.org>2014-04-11 00:10:36 +0200
commit1e7914058e3533d905618dd00a36499c8d29e7be (patch)
tree39e4df315f2dc6493696657170c6292a767e77f1 /drivers/regulator/bcm590xx-regulator.c
parentMerge remote-tracking branches 'regulator/topic/tps65218', 'regulator/topic/t... (diff)
downloadlinux-1e7914058e3533d905618dd00a36499c8d29e7be.tar.xz
linux-1e7914058e3533d905618dd00a36499c8d29e7be.zip
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, \
}