Skip to contentSkip to conversation

regulator: tps6507x: Remove unused min_uV and max_uV from struct tps_info

PATCH Applied Axel Lin 2 participants 2 messages Jun 5, 2012 Voltage and current regulator framework

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 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.

---
 drivers/regulator/tps6507x-regulator.c |   12 ------------
 1 file changed, 12 deletions(-)
drivers/regulator/tps6507x-regulator.c +0 -12
index c771e10..eed6678 100644
@@ -91,8 +91,6 @@ static const unsigned int LDO2_VSEL_table[] = {
 
 struct tps_info {
 	const char *name;
-	unsigned min_uV;
-	unsigned max_uV;
 	u8 table_len;
 	const unsigned int *table;
 
@@ -103,36 +101,26 @@ struct tps_info {
 static struct tps_info tps6507x_pmic_regs[] = {
 	{
 		.name = "VDCDC1",
-		.min_uV = 725000,
-		.max_uV = 3300000,
 		.table_len = ARRAY_SIZE(VDCDCx_VSEL_table),
 		.table = VDCDCx_VSEL_table,
 	},
 	{
 		.name = "VDCDC2",
-		.min_uV = 725000,
-		.max_uV = 3300000,
 		.table_len = ARRAY_SIZE(VDCDCx_VSEL_table),
 		.table = VDCDCx_VSEL_table,
 	},
 	{
 		.name = "VDCDC3",
-		.min_uV = 725000,
-		.max_uV = 3300000,
 		.table_len = ARRAY_SIZE(VDCDCx_VSEL_table),
 		.table = VDCDCx_VSEL_table,
 	},
 	{
 		.name = "LDO1",
-		.min_uV = 1000000,
-		.max_uV = 3300000,
 		.table_len = ARRAY_SIZE(LDO1_VSEL_table),
 		.table = LDO1_VSEL_table,
 	},
 	{
 		.name = "LDO2",
-		.min_uV = 725000,
-		.max_uV = 3300000,
 		.table_len = ARRAY_SIZE(LDO2_VSEL_table),
 		.table = LDO2_VSEL_table,
 	},
Signature · 1 line
1.7.9.5
Applied
#1 lore raw
Quoted 4 lines · Axel Lin

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.

Applied, thanks.