[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <cb786b54b2a5554693022939b9e34851a7c590f9.1714399603.git.mirq-linux@rere.qmqm.pl>
Date: Mon, 29 Apr 2024 16:45:31 +0200
From: Michał Mirosław <mirq-linux@...e.qmqm.pl>
To: Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH v2 09/12] regulator/tps68470: use rdev_get_drvdata()
Replace uses of rdev->reg_data with the official wrapper.
Signed-off-by: Michał Mirosław <mirq-linux@...e.qmqm.pl>
---
drivers/regulator/tps68470-regulator.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/regulator/tps68470-regulator.c b/drivers/regulator/tps68470-regulator.c
index de7db7690f6b..326a3b942488 100644
--- a/drivers/regulator/tps68470-regulator.c
+++ b/drivers/regulator/tps68470-regulator.c
@@ -56,7 +56,7 @@ static const struct linear_range tps68470_core_ranges[] = {
static int tps68470_regulator_enable(struct regulator_dev *rdev)
{
- struct tps68470_regulator_data *data = rdev->reg_data;
+ struct tps68470_regulator_data *data = rdev_get_drvdata(rdev);
int ret;
/* The Core buck regulator needs the PMIC's PLL to be enabled */
@@ -73,7 +73,7 @@ static int tps68470_regulator_enable(struct regulator_dev *rdev)
static int tps68470_regulator_disable(struct regulator_dev *rdev)
{
- struct tps68470_regulator_data *data = rdev->reg_data;
+ struct tps68470_regulator_data *data = rdev_get_drvdata(rdev);
if (rdev->desc->id == TPS68470_CORE)
clk_disable_unprepare(data->clk);
--
2.39.2
Powered by blists - more mailing lists