mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Axel Lin <axel.lin@ingics.com>
To: Mark Brown <broonie@kernel.org>
Cc: Milo Kim <milo.kim@ti.com>, Liam Girdwood <lgirdwood@gmail.com>,
	linux-kernel@vger.kernel.org, Axel Lin <axel.lin@ingics.com>
Subject: [PATCH 1/2] regulator: lp8788-ldo: Remove *desc and *regulator from struct lp8788_ldo
Date: Wed, 30 Jan 2019 21:04:18 +0800	[thread overview]
Message-ID: <20190130130419.23548-1-axel.lin@ingics.com> (raw)

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


             reply	other threads:[~2019-01-30 13:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-30 13:04 Axel Lin [this message]
2019-01-30 13:04 ` [PATCH 2/2] regulator: lp8788-buck: Remove *regulator from struct lp8788_buck Axel Lin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190130130419.23548-1-axel.lin@ingics.com \
    --to=axel.lin@ingics.com \
    --cc=broonie@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=milo.kim@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®