[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-id: <51D0C490.6090804@samsung.com>
Date: Mon, 01 Jul 2013 08:51:44 +0900
From: jonghwa3.lee@...sung.com
To: Axel Lin <axel.lin@...ics.com>
Cc: Mark Brown <broonie@...nel.org>,
Myungjoo Ham <myungjoo.ham@...sung.com>,
Liam Girdwood <lgirdwood@...il.com>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] regulator: max77693: Fix trivial typo
On 2013년 06월 29일 12:37, Axel Lin wrote:
> Fix trivial typo in the equation to check upper bound of current setting.
>
> Signed-off-by: Axel Lin <axel.lin@...ics.com>
> ---
> drivers/regulator/max77693.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/regulator/max77693.c b/drivers/regulator/max77693.c
> index 674ece7..d45a4dd 100644
> --- a/drivers/regulator/max77693.c
> +++ b/drivers/regulator/max77693.c
> @@ -97,7 +97,7 @@ static int max77693_chg_set_current_limit(struct regulator_dev *rdev,
> while (chg_min_uA + CHGIN_ILIM_STEP_20mA * sel < min_uA)
> sel++;
>
> - if (chg_min_uA * CHGIN_ILIM_STEP_20mA * sel > max_uA)
> + if (chg_min_uA + CHGIN_ILIM_STEP_20mA * sel > max_uA)
> return -EINVAL;
>
> /* the first four codes for charger current are all 60mA */
Acked-by: Jonghwa Lee <jonghwa3.lee@...sung.com>
Thanks,
Jonghwa
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists