Re: [PATCH v2] regulator: twl-regulator: Use DIV_ROUND_UP atappropriate places

From: Axel Lin
Date: Tue Apr 10 2012 - 07:49:42 EST


2012/4/10 Mark Brown <broonie@xxxxxxxxxxxxxxxxxxxxxxxxxxx>:
> On Mon, Apr 09, 2012 at 11:35:10PM +0800, Axel Lin wrote:
>> Signed-off-by: Axel Lin <axel.lin@xxxxxxxxx>
>
> Applied, thanks.
Hi Mark,
Seems you apply V2 of the patch.
The V3 is the correct one. https://lkml.org/lkml/2012/4/9/435

( the vsel++ after DIV_ROUND_UP is required because
current code does subtract index by 1 in the list_voltage callback.
e.g. current code uses this trick to differential setting voltage to
0 (vsel is 0) or 600000 uV (vsel is 1) )

Regards,
Axel
--
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/