Re: [PATCH RFT 1/2] regulator: twl: Fix the formula to calculatevsel and voltage for twl6030ldo

From: Mark Brown
Date: Sun Jul 15 2012 - 17:06:40 EST


On Mon, Jul 09, 2012 at 11:22:31AM +0800, Axel Lin wrote:
> In twl6030ldo_set_voltage, current code use below formula to calculate vsel:
> vsel = (min_uV/1000 - 1000)/100 + 1;
> This is worng because when min_uV is 1000000 uV, vsel is 1.

Applied both, thanks - even if we need to fix some of these to be using
tables again this set of changes at least maintains the status quo.

Attachment: signature.asc
Description: Digital signature