2014-04-10 20:04:10

by Tim Kryger

[permalink] [raw]
Subject: [PATCH] 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 <[email protected]>
---
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


2014-04-10 20:26:00

by Matt Porter

[permalink] [raw]
Subject: Re: [PATCH] regulator: bcm590xx: Set n_voltages for linear reg

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 <[email protected]>

Looks good.

Acked-by: Matt Porter <[email protected]>

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
>

2014-04-10 22:11:05

by Mark Brown

[permalink] [raw]
Subject: Re: [PATCH] regulator: bcm590xx: Set n_voltages for linear reg

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.


Attachments:
(No filename) (170.00 B)
signature.asc (836.00 B)
Digital signature
Download all attachments