diff mbox

regulator: bcm590xx: Set n_voltages for linear reg

Message ID 1397160240-2833-1-git-send-email-tim.kryger@linaro.org
State Accepted
Commit 1e7914058e3533d905618dd00a36499c8d29e7be
Headers show

Commit Message

Tim Kryger April 10, 2014, 8:04 p.m. UTC
Fix the macro used to define linear range regulators to include the
number of voltages.

Signed-off-by: Tim Kryger <tim.kryger@linaro.org>
---
 drivers/regulator/bcm590xx-regulator.c |    1 +
 1 file changed, 1 insertion(+)

Comments

Matt Porter April 10, 2014, 8:25 p.m. UTC | #1
On Thu, Apr 10, 2014 at 01:04:00PM -0700, Tim Kryger wrote:
> Fix the macro used to define linear range regulators to include the
> number of voltages.
> 
> Signed-off-by: Tim Kryger <tim.kryger@linaro.org>

Looks good.

Acked-by: Matt Porter <mporter@linaro.org>

Mark: will you take this for 3.15 fixes?

-Matt

> ---
>  drivers/regulator/bcm590xx-regulator.c |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/regulator/bcm590xx-regulator.c b/drivers/regulator/bcm590xx-regulator.c
> index ab08ca7..c3750c5 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, \
>  	}
> -- 
> 1.7.9.5
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
Mark Brown April 10, 2014, 10:10 p.m. UTC | #2
On Thu, Apr 10, 2014 at 01:04:00PM -0700, Tim Kryger wrote:
> Fix the macro used to define linear range regulators to include the
> number of voltages.

Applied, thanks.
diff mbox

Patch

diff --git a/drivers/regulator/bcm590xx-regulator.c b/drivers/regulator/bcm590xx-regulator.c
index ab08ca7..c3750c5 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, \
 	}