lkml.org 
[lkml]   [2012]   [Apr]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH v2] regulator: twl-regulator: Use DIV_ROUND_UP at appropriate places
2012/4/10 Mark Brown <broonie@opensource.wolfsonmicro.com>:
> On Mon, Apr 09, 2012 at 11:35:10PM +0800, Axel Lin wrote:
>> Signed-off-by: Axel Lin <axel.lin@gmail.com>
>
> 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


\
 
 \ /
  Last update: 2012-04-10 13:51    [W:0.046 / U:0.896 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site