Skip to contentSkip to conversation

regulator: Remove unused name and client fields from struct tps62360_chip

PATCH New Axel Lin 1 participant 2 messages Mar 28, 2012 Voltage and current regulator framework

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/2 regulator: Remove unused name and client fields from struct tps62360_chip

The client field of struct tps62360_chip is not used after converting to regmap. The name field of struct tps62360_chip is not used in this driver.

---
 drivers/regulator/tps62360-regulator.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
drivers/regulator/tps62360-regulator.c +0 -4
index e2ec730..b18b7ca 100644
@@ -56,10 +56,8 @@ enum chips {TPS62360, TPS62361};
 
 /* tps 62360 chip information */
 struct tps62360_chip {
-	const char *name;
 	struct device *dev;
 	struct regulator_desc desc;
-	struct i2c_client *client;
 	struct regulator_dev *rdev;
 	struct regmap *regmap;
 	int chip_id;
@@ -297,9 +295,7 @@ static int __devinit tps62360_probe(struct i2c_client *client,
 	tps->en_internal_pulldn = pdata->en_internal_pulldn;
 	tps->vsel0_gpio = pdata->vsel0_gpio;
 	tps->vsel1_gpio = pdata->vsel1_gpio;
-	tps->client = client;
 	tps->dev = &client->dev;
-	tps->name = id->name;
 	tps->voltage_base = (id->driver_data == TPS62360) ?
 				TPS62360_BASE_VOLTAGE : TPS62361_BASE_VOLTAGE;
 	tps->voltage_reg_mask = (id->driver_data == TPS62360) ? 0x3F : 0x7F;
Signature · 1 line
1.7.5.4
author
#1 lore raw

PATCH 2/2 regulator: tps65023: Remove unused client field from struct tps_pmic

The client field of struct tps_pmic is not used after converting to regmap API.

---
 drivers/regulator/tps65023-regulator.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
drivers/regulator/tps65023-regulator.c +0 -2
index 08b3b41..5c9a900 100644
@@ -139,7 +139,6 @@ struct tps_info {
 /* PMIC details */
 struct tps_pmic {
 	struct regulator_desc desc[TPS65023_NUM_REGULATOR];
-	struct i2c_client *client;
 	struct regulator_dev *rdev[TPS65023_NUM_REGULATOR];
 	const struct tps_info *info[TPS65023_NUM_REGULATOR];
 	struct regmap *regmap;
@@ -407,7 +406,6 @@ static int __devinit tps_65023_probe(struct i2c_client *client,
 	}
 
 	/* common for all regulators */
-	tps->client = client;
 	tps->core_regulator = drv_data->core_regulator;
 
 	for (i = 0; i < TPS65023_NUM_REGULATOR; i++, info++, init_data++) {
Signature · 1 line
1.7.5.4