lkml.org 
[lkml]   [2024]   [Apr]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
Subject[PATCH v2 09/12] regulator/tps68470: use rdev_get_drvdata()
From
Replace uses of rdev->reg_data with the official wrapper.

Signed-off-by: Michał Mirosław <mirq-linux@rere.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

\
 
 \ /
  Last update: 2024-05-27 18:08    [W:0.153 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site