aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-03-27 22:06:45 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-04-01 06:59:35 -0400
commitc60f1718f508a40964c149f1139b4eaaae825fd3 (patch)
tree8c59bbe684cbda95253c14752cceb3dc945b605e
parent0ec446ea9a1cc86bfeb0c724a490701271d02fa5 (diff)
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. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r--drivers/regulator/tps62360-regulator.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/regulator/tps62360-regulator.c b/drivers/regulator/tps62360-regulator.c
index e2ec73068ee2..b18b7cad7f95 100644
--- a/drivers/regulator/tps62360-regulator.c
+++ b/drivers/regulator/tps62360-regulator.c
@@ -56,10 +56,8 @@ enum chips {TPS62360, TPS62361};
56 56
57/* tps 62360 chip information */ 57/* tps 62360 chip information */
58struct tps62360_chip { 58struct tps62360_chip {
59 const char *name;
60 struct device *dev; 59 struct device *dev;
61 struct regulator_desc desc; 60 struct regulator_desc desc;
62 struct i2c_client *client;
63 struct regulator_dev *rdev; 61 struct regulator_dev *rdev;
64 struct regmap *regmap; 62 struct regmap *regmap;
65 int chip_id; 63 int chip_id;
@@ -297,9 +295,7 @@ static int __devinit tps62360_probe(struct i2c_client *client,
297 tps->en_internal_pulldn = pdata->en_internal_pulldn; 295 tps->en_internal_pulldn = pdata->en_internal_pulldn;
298 tps->vsel0_gpio = pdata->vsel0_gpio; 296 tps->vsel0_gpio = pdata->vsel0_gpio;
299 tps->vsel1_gpio = pdata->vsel1_gpio; 297 tps->vsel1_gpio = pdata->vsel1_gpio;
300 tps->client = client;
301 tps->dev = &client->dev; 298 tps->dev = &client->dev;
302 tps->name = id->name;
303 tps->voltage_base = (id->driver_data == TPS62360) ? 299 tps->voltage_base = (id->driver_data == TPS62360) ?
304 TPS62360_BASE_VOLTAGE : TPS62361_BASE_VOLTAGE; 300 TPS62360_BASE_VOLTAGE : TPS62361_BASE_VOLTAGE;
305 tps->voltage_reg_mask = (id->driver_data == TPS62360) ? 0x3F : 0x7F; 301 tps->voltage_reg_mask = (id->driver_data == TPS62360) ? 0x3F : 0x7F;