Re: [PATCH 1/2] twl6030: regulator: Fix vsel calculations in set/get voltage apis

Mark Brown
2010-02-18T11:42:41Z

On Thu, Feb 18, 2010 at 05:09:53PM +0530, Nayak, Rajendra wrote:

> Mark, I get your point. The table values were derived from what the spec
> suggests, but I agree that its confusing that in theory the formula
> suggests there could be more selectors than whats present in the table.

> I will check if its indeed possible to support all possible selectors
> between say a min/max range. And then have maybe seperate kind of tables
> for twl6030 which only specify min/max range and then use the formula to
> generate the right selector.

Another option if you do need the supported voltage list would be to
rename the table and have a separate function to do set on twl6030 which
makes the intended usage clear.