Axel Lin 33234e791d regulator: core: Allow specific minimal selector for starting linear mapping
Some drivers (at least 3 drivers) have such variant of linear mapping that
the first few selectors are invalid and the reset are linear mapping.
Let's support this case in core.

This patch adds linear_min_sel in struct regulator_desc,
so we can allow specific minimal selector for starting linear mapping.
Then extends regulator_[map|list]_voltage_linear() to support this feature.

Note that for selectors less than min_linear_index, we need count them to
n_voltages so regulator_list_voltage() won't fail while checking the boundary
for selector before calling list_voltage callback.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2012-11-27 20:07:40 +00:00
..
2012-11-22 09:14:54 -10:00
2012-10-15 14:45:51 -04:00
2012-11-23 14:32:55 +01:00
2012-10-07 20:55:16 +09:00
2012-10-30 10:05:51 +01:00
2012-09-26 22:28:21 -04:00
2012-11-23 12:11:13 -10:00
2012-10-07 17:29:24 +09:00
2012-10-10 20:15:24 +09:00
2012-11-23 14:17:36 -05:00
2012-10-17 15:53:03 -05:00
2012-10-09 16:11:46 +09:00
2012-10-10 20:15:24 +09:00
2012-11-16 14:33:04 -08:00
2012-10-28 11:13:54 -07:00
2012-11-22 09:14:54 -10:00
2012-11-23 12:01:02 -10:00
2012-10-01 12:09:59 -07:00
2012-11-20 18:52:01 -10:00
2012-10-01 18:46:13 -07:00
2012-10-16 18:07:12 -07:00