lkml.org 
[lkml]   [2019]   [Jan]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 1/2] regulator: lp8788-ldo: Remove *desc and *regulator from struct lp8788_ldo
Date
They are not used at all, remove them.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
drivers/regulator/lp8788-ldo.c | 4 ----
1 file changed, 4 deletions(-)

diff --git a/drivers/regulator/lp8788-ldo.c b/drivers/regulator/lp8788-ldo.c
index a2ef146e6b3a..172b5f9355dd 100644
--- a/drivers/regulator/lp8788-ldo.c
+++ b/drivers/regulator/lp8788-ldo.c
@@ -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;
--
2.17.1
\
 
 \ /
  Last update: 2019-01-30 14:05    [W:0.030 / U:2.664 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site