]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
pinctrl: renesas: sh73a0: Use rdev_get_drvdata()
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Wed, 1 May 2024 11:15:58 +0000 (13:15 +0200)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 1 Jul 2024 09:27:38 +0000 (11:27 +0200)
Replace `reg_data` access with the official wrapper. The field is going
away soon.

Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/bb6b85722d80d665779e3043d1499c4fc38f0ff3.1714562004.git.mirq-linux@rere.qmqm.pl
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/pinctrl/renesas/pfc-sh73a0.c

index ca5adf2095be31673754b4063ac6e76d622f2935..41587233aa447d7fc751a5d08cc10be31dba0b5c 100644 (file)
@@ -4024,7 +4024,7 @@ static const struct pinmux_irq pinmux_irqs[] = {
 
 static void sh73a0_vccq_mc0_endisable(struct regulator_dev *reg, bool enable)
 {
-       struct sh_pfc *pfc = reg->reg_data;
+       struct sh_pfc *pfc = rdev_get_drvdata(reg);
        void __iomem *addr = pfc->windows[1].virt + 4;
        unsigned long flags;
        u32 value;
@@ -4057,7 +4057,7 @@ static int sh73a0_vccq_mc0_disable(struct regulator_dev *reg)
 
 static int sh73a0_vccq_mc0_is_enabled(struct regulator_dev *reg)
 {
-       struct sh_pfc *pfc = reg->reg_data;
+       struct sh_pfc *pfc = rdev_get_drvdata(reg);
        void __iomem *addr = pfc->windows[1].virt + 4;
        unsigned long flags;
        u32 value;