aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/tps6507x-regulator.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-06-04 20:39:52 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-06-05 06:20:53 -0400
commitf03c4a57cf0cbb4f961bca287f8bdfd3d6eb7e1a (patch)
tree93df19a6c579627f4a915de26472d51439e88b2c /drivers/regulator/tps6507x-regulator.c
parent74adfee53b8f05b4a9db0848d19399db2cef6cbf (diff)
regulator: tps6507x: Remove unused min_uV and max_uV from struct tps_info
The min_uV and max_uV are not used in this driver. For table based voltage mappings, we can get min_uV and max_uV by info->table[0] and info->table[table_len -1]. Thus remove min_uV and max_uV from struct tps_info. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/regulator/tps6507x-regulator.c')
-rw-r--r--drivers/regulator/tps6507x-regulator.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/regulator/tps6507x-regulator.c b/drivers/regulator/tps6507x-regulator.c
index c771e1077cc1..eed6678c2906 100644
--- a/drivers/regulator/tps6507x-regulator.c
+++ b/drivers/regulator/tps6507x-regulator.c
@@ -91,8 +91,6 @@ static const unsigned int LDO2_VSEL_table[] = {
91 91
92struct tps_info { 92struct tps_info {
93 const char *name; 93 const char *name;
94 unsigned min_uV;
95 unsigned max_uV;
96 u8 table_len; 94 u8 table_len;
97 const unsigned int *table; 95 const unsigned int *table;
98 96
@@ -103,36 +101,26 @@ struct tps_info {
103static struct tps_info tps6507x_pmic_regs[] = { 101static struct tps_info tps6507x_pmic_regs[] = {
104 { 102 {
105 .name = "VDCDC1", 103 .name = "VDCDC1",
106 .min_uV = 725000,
107 .max_uV = 3300000,
108 .table_len = ARRAY_SIZE(VDCDCx_VSEL_table), 104 .table_len = ARRAY_SIZE(VDCDCx_VSEL_table),
109 .table = VDCDCx_VSEL_table, 105 .table = VDCDCx_VSEL_table,
110 }, 106 },
111 { 107 {
112 .name = "VDCDC2", 108 .name = "VDCDC2",
113 .min_uV = 725000,
114 .max_uV = 3300000,
115 .table_len = ARRAY_SIZE(VDCDCx_VSEL_table), 109 .table_len = ARRAY_SIZE(VDCDCx_VSEL_table),
116 .table = VDCDCx_VSEL_table, 110 .table = VDCDCx_VSEL_table,
117 }, 111 },
118 { 112 {
119 .name = "VDCDC3", 113 .name = "VDCDC3",
120 .min_uV = 725000,
121 .max_uV = 3300000,
122 .table_len = ARRAY_SIZE(VDCDCx_VSEL_table), 114 .table_len = ARRAY_SIZE(VDCDCx_VSEL_table),
123 .table = VDCDCx_VSEL_table, 115 .table = VDCDCx_VSEL_table,
124 }, 116 },
125 { 117 {
126 .name = "LDO1", 118 .name = "LDO1",
127 .min_uV = 1000000,
128 .max_uV = 3300000,
129 .table_len = ARRAY_SIZE(LDO1_VSEL_table), 119 .table_len = ARRAY_SIZE(LDO1_VSEL_table),
130 .table = LDO1_VSEL_table, 120 .table = LDO1_VSEL_table,
131 }, 121 },
132 { 122 {
133 .name = "LDO2", 123 .name = "LDO2",
134 .min_uV = 725000,
135 .max_uV = 3300000,
136 .table_len = ARRAY_SIZE(LDO2_VSEL_table), 124 .table_len = ARRAY_SIZE(LDO2_VSEL_table),
137 .table = LDO2_VSEL_table, 125 .table = LDO2_VSEL_table,
138 }, 126 },