regulator: Add REGULATOR_LINEAR_RANGE macro

Add REGULATOR_LINEAR_RANGE macro and convert regulator drivers to use it.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Šī revīzija ir iekļauta:
Axel Lin
2013-10-11 09:32:18 +08:00
revīziju iesūtīja Mark Brown
vecāks e277e65680
revīzija 8828bae464
10 mainīti faili ar 46 papildinājumiem un 51 dzēšanām

Parādīt failu

@@ -543,8 +543,8 @@ static int wm8350_dcdc_set_suspend_mode(struct regulator_dev *rdev,
}
static const struct regulator_linear_range wm8350_ldo_ranges[] = {
{ .min_uV = 900000, .min_sel = 0, .max_sel = 15, .uV_step = 50000 },
{ .min_uV = 1800000, .min_sel = 16, .max_sel = 31, .uV_step = 100000 },
REGULATOR_LINEAR_RANGE(900000, 0, 15, 50000),
REGULATOR_LINEAR_RANGE(1800000, 16, 31, 100000),
};
static int wm8350_ldo_set_suspend_voltage(struct regulator_dev *rdev, int uV)