From: Tim Kryger Date: Thu, 10 Apr 2014 20:04:00 +0000 (-0700) Subject: regulator: bcm590xx: Set n_voltages for linear reg X-Git-Tag: v3.15-rc1~26^2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e7914058e3533d905618dd00a36499c8d29e7be;p=thirdparty%2Flinux.git 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 Acked-by: Matt Porter Signed-off-by: Mark Brown --- diff --git a/drivers/regulator/bcm590xx-regulator.c b/drivers/regulator/bcm590xx-regulator.c index ab08ca7cfb085..c3750c5b382be 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, \ }