]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
regulator: Remove unused name and client fields from struct tps62360_chip
authorAxel Lin <axel.lin@gmail.com>
Wed, 28 Mar 2012 02:06:45 +0000 (10:06 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 1 Apr 2012 10:59:35 +0000 (11:59 +0100)
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>
drivers/regulator/tps62360-regulator.c

index e2ec73068ee2e1aac58fb0558697840d42e13f96..b18b7cad7f95c67cfcc917ceee09692c4d5cc478 100644 (file)
@@ -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;