From: Krzysztof Kozlowski Date: Mon, 10 Mar 2014 08:32:49 +0000 (+0100) Subject: regulator: max8925: Remove unused state container fields X-Git-Tag: firefly_0821_release~176^2~4202^2~3^8~1 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=15af45d1522af87bb5914e3c137b0b80bbca5931;p=firefly-linux-kernel-4.4.55.git regulator: max8925: Remove unused state container fields Remove fields from 'struct max8925_regulator' which are not used anywhere in the driver. Signed-off-by: Krzysztof Kozlowski Signed-off-by: Mark Brown --- diff --git a/drivers/regulator/max8925-regulator.c b/drivers/regulator/max8925-regulator.c index 9c859ed4131b..e316abae004a 100644 --- a/drivers/regulator/max8925-regulator.c +++ b/drivers/regulator/max8925-regulator.c @@ -36,9 +36,7 @@ struct max8925_regulator_info { struct regulator_desc desc; - struct regulator_dev *regulator; struct i2c_client *i2c; - struct max8925_chip *chip; int vol_reg; int enable_reg; @@ -303,7 +301,6 @@ static int max8925_regulator_probe(struct platform_device *pdev) return -EINVAL; } ri->i2c = chip->i2c; - ri->chip = chip; config.dev = &pdev->dev; config.driver_data = ri;