regulator: Remove max_uV from struct regulator_linear_range
linear ranges means each range has linear voltage settings. So we can calculate max_uV for each linear range in regulator core rather than set the max_uV field in drivers. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@linaro.org>
此提交包含在:
@@ -141,18 +141,16 @@ struct pm800_regulators {
|
||||
|
||||
/* Ranges are sorted in ascending order. */
|
||||
static const struct regulator_linear_range buck1_volt_range[] = {
|
||||
{ .min_uV = 600000, .max_uV = 1587500, .min_sel = 0, .max_sel = 0x4f,
|
||||
.uV_step = 12500 },
|
||||
{ .min_uV = 1600000, .max_uV = 1800000, .min_sel = 0x50,
|
||||
.max_sel = 0x54, .uV_step = 50000 },
|
||||
{ .min_uV = 600000, .min_sel = 0, .max_sel = 0x4f, .uV_step = 12500 },
|
||||
{ .min_uV = 1600000, .min_sel = 0x50, .max_sel = 0x54,
|
||||
.uV_step = 50000 },
|
||||
};
|
||||
|
||||
/* BUCK 2~5 have same ranges. */
|
||||
static const struct regulator_linear_range buck2_5_volt_range[] = {
|
||||
{ .min_uV = 600000, .max_uV = 1587500, .min_sel = 0, .max_sel = 0x4f,
|
||||
.uV_step = 12500 },
|
||||
{ .min_uV = 1600000, .max_uV = 3300000, .min_sel = 0x50,
|
||||
.max_sel = 0x72, .uV_step = 50000 },
|
||||
{ .min_uV = 600000, .min_sel = 0, .max_sel = 0x4f, .uV_step = 12500 },
|
||||
{ .min_uV = 1600000, .min_sel = 0x50, .max_sel = 0x72,
|
||||
.uV_step = 50000 },
|
||||
};
|
||||
|
||||
static const unsigned int ldo1_volt_table[] = {
|
||||
|
新增問題並參考
封鎖使用者