Re: [PATCH] regulator: max8952 - fix wrong gpio valid check

From: Liam Girdwood
Date: Mon Jul 04 2011 - 12:05:49 EST


On Wed, 2011-06-15 at 17:54 +0900, MyungJoo Ham wrote:
> From: Jonghwan Choi <jhbird.choi@xxxxxxxxxxx>
>
> Signed-off-by: Jonghwan Choi <jhbird.choi@xxxxxxxxxxx>
> Acked-by: MyungJoo Ham <myungjoo.ham@xxxxxxxxxxx>
> ---
> drivers/regulator/max8952.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/regulator/max8952.c b/drivers/regulator/max8952.c
> index daff7fd..486ed81 100644
> --- a/drivers/regulator/max8952.c
> +++ b/drivers/regulator/max8952.c
> @@ -139,7 +139,7 @@ static int max8952_set_voltage(struct regulator_dev *rdev,
> s8 vid = -1, i;
>
> if (!gpio_is_valid(max8952->pdata->gpio_vid0) ||
> - !gpio_is_valid(max8952->pdata->gpio_vid0)) {
> + !gpio_is_valid(max8952->pdata->gpio_vid1)) {
> /* DVS not supported */
> return -EPERM;
> }

Applied.

Thanks

Liam

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/