Commit 1e791405 authored by Tim Kryger's avatar Tim Kryger Committed by Mark Brown

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: default avatarTim Kryger <tim.kryger@linaro.org>
Acked-by: default avatarMatt Porter <mporter@linaro.org>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 5481b348
......@@ -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, \
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment