瀏覽代碼

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>
Tim Kryger 11 年之前
父節點
當前提交
1e7914058e
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/regulator/bcm590xx-regulator.c

+ 1 - 0
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, \
 	}