Skip to contentSkip to conversation

regulator: rc5t583: Remove unused fields from struct rc5t583_regulator_info

PATCH Applied Axel Lin 2 participants 2 messages Apr 12, 2013 – Apr 16, 2013 Voltage and current regulator framework

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 regulator: rc5t583: Remove unused fields from struct rc5t583_regulator_info

The *dev and *mfd of struct rc5t583_regulator_info are not used after convert to use regmap, remove them.

---
 drivers/regulator/rc5t583-regulator.c |    6 ------
 1 file changed, 6 deletions(-)
drivers/regulator/rc5t583-regulator.c +0 -6
index 9e6f786..5885b45 100644
@@ -49,10 +49,6 @@ struct rc5t583_regulator_info {
 
 struct rc5t583_regulator {
 	struct rc5t583_regulator_info *reg_info;
-
-	/* Devices */
-	struct device		*dev;
-	struct rc5t583		*mfd;
 	struct regulator_dev	*rdev;
 };
 
@@ -155,8 +151,6 @@ static int rc5t583_regulator_probe(struct platform_device *pdev)
 		reg = &regs[id];
 		ri = &rc5t583_reg_info[id];
 		reg->reg_info = ri;
-		reg->mfd = rc5t583;
-		reg->dev = &pdev->dev;
 
 		if (ri->deepsleep_id == RC5T583_DS_NONE)
 			goto skip_ext_pwr_config;
Signature · 1 line
1.7.10.4
maintainer Applied
#1 lore raw
Quoted 2 lines · Axel Lin

The *dev and *mfd of struct rc5t583_regulator_info are not used after convert to use regmap, remove them.

Applied, thanks.