diff options
author | Axel Lin <axel.lin@ingics.com> | 2013-04-24 23:31:42 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-04-25 06:49:27 -0400 |
commit | 2040541afb4c623d628e714a412160c53694b7f1 (patch) | |
tree | f30d8479ae23d54839434c12b496e23d0dffbe9c /drivers/regulator | |
parent | a1bb63a80ccbbe8ea6582734f8cda008abfa48df (diff) |
regulator: tps65023: Merge tps65020 ldo1 and ldo2 vsel table
tps65020 ldo1 and ldo2 vsel tables are identical, merge them.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/tps65023-regulator.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/drivers/regulator/tps65023-regulator.c b/drivers/regulator/tps65023-regulator.c index 9b9af6d889c8..ec1c94109418 100644 --- a/drivers/regulator/tps65023-regulator.c +++ b/drivers/regulator/tps65023-regulator.c | |||
@@ -107,12 +107,7 @@ static const unsigned int DCDC_FIXED_1800000_VSEL_table[] = { | |||
107 | }; | 107 | }; |
108 | 108 | ||
109 | /* Supported voltage values for LDO regulators for tps65020 */ | 109 | /* Supported voltage values for LDO regulators for tps65020 */ |
110 | static const unsigned int TPS65020_LDO1_VSEL_table[] = { | 110 | static const unsigned int TPS65020_LDO_VSEL_table[] = { |
111 | 1000000, 1050000, 1100000, 1300000, | ||
112 | 1800000, 2500000, 3000000, 3300000, | ||
113 | }; | ||
114 | |||
115 | static const unsigned int TPS65020_LDO2_VSEL_table[] = { | ||
116 | 1000000, 1050000, 1100000, 1300000, | 111 | 1000000, 1050000, 1100000, 1300000, |
117 | 1800000, 2500000, 3000000, 3300000, | 112 | 1800000, 2500000, 3000000, 3300000, |
118 | }; | 113 | }; |
@@ -347,13 +342,13 @@ static const struct tps_info tps65020_regs[] = { | |||
347 | }, | 342 | }, |
348 | { | 343 | { |
349 | .name = "LDO1", | 344 | .name = "LDO1", |
350 | .table_len = ARRAY_SIZE(TPS65020_LDO1_VSEL_table), | 345 | .table_len = ARRAY_SIZE(TPS65020_LDO_VSEL_table), |
351 | .table = TPS65020_LDO1_VSEL_table, | 346 | .table = TPS65020_LDO_VSEL_table, |
352 | }, | 347 | }, |
353 | { | 348 | { |
354 | .name = "LDO2", | 349 | .name = "LDO2", |
355 | .table_len = ARRAY_SIZE(TPS65020_LDO2_VSEL_table), | 350 | .table_len = ARRAY_SIZE(TPS65020_LDO_VSEL_table), |
356 | .table = TPS65020_LDO2_VSEL_table, | 351 | .table = TPS65020_LDO_VSEL_table, |
357 | }, | 352 | }, |
358 | }; | 353 | }; |
359 | 354 | ||