Skip to contentSkip to conversation

regulator: lp8788-ldo: Remove *desc and *regulator from struct lp8788_ldo

PATCH New Axel Lin 1 participant 2 messages Jan 30, 2019 Voltage and current regulator framework

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/2 regulator: lp8788-ldo: Remove *desc and *regulator from struct lp8788_ldo

They are not used at all, remove them.

---
 drivers/regulator/lp8788-ldo.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/regulator/lp8788-ldo.c +0 -4
index a2ef146e6b3a..172b5f9355dd 100644
@@ -113,8 +113,6 @@ enum lp8788_ldo_id {
 
 struct lp8788_ldo {
 	struct lp8788 *lp;
-	struct regulator_desc *desc;
-	struct regulator_dev *regulator;
 	struct gpio_desc *ena_gpiod;
 };
 
@@ -558,7 +556,6 @@ static int lp8788_dldo_probe(struct platform_device *pdev)
 		return ret;
 	}
 
-	ldo->regulator = rdev;
 	platform_set_drvdata(pdev, ldo);
 
 	return 0;
@@ -605,7 +602,6 @@ static int lp8788_aldo_probe(struct platform_device *pdev)
 		return ret;
 	}
 
-	ldo->regulator = rdev;
 	platform_set_drvdata(pdev, ldo);
 
 	return 0;
Signature · 1 line
2.17.1
author
#1 lore raw

PATCH 2/2 regulator: lp8788-buck: Remove *regulator from struct lp8788_buck

It is not used at all, remove it.

---
 drivers/regulator/lp8788-buck.c | 2 --
 1 file changed, 2 deletions(-)
drivers/regulator/lp8788-buck.c +0 -2
index 30de784d8e30..f84167688e5e 100644
@@ -91,7 +91,6 @@ enum lp8788_buck_id {
 
 struct lp8788_buck {
 	struct lp8788 *lp;
-	struct regulator_dev *regulator;
 	void *dvs;
 };
 
@@ -523,7 +522,6 @@ static int lp8788_buck_probe(struct platform_device *pdev)
 		return ret;
 	}
 
-	buck->regulator = rdev;
 	platform_set_drvdata(pdev, buck);
 
 	return 0;
Signature · 1 line
2.17.1