aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator
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
parentMerge remote-tracking branches 'regulator/topic/tps65218', 'regulator/topic/tps6524x', 'regulator/topic/tps6586x', 'regulator/topic/tps65910', 'regulator/topic/tps80031', 'regulator/topic/wm831x', 'regulator/topic/wm8350' and 'regulator/topic/wm8994' into regulator-next (diff)
downloadlinux-dev-1e7914058e3533d905618dd00a36499c8d29e7be.tar.xz
linux-dev-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')
-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, \
}