Messages in this thread Patch in this message | ![/](/images/icornerl.gif) | | Date | Mon, 29 Apr 2024 16:45:31 +0200 | Subject | [PATCH v2 09/12] regulator/tps68470: use rdev_get_drvdata() | From | Michał Mirosław <> |
| |
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
| ![\](/images/icornerr.gif) |