]> www.infradead.org Git - users/hch/misc.git/commitdiff
drm: rcar-du: lvds: Convert to RUNTIME_PM_OPS()
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 4 Sep 2025 15:31:00 +0000 (17:31 +0200)
committerTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Mon, 8 Sep 2025 06:17:52 +0000 (09:17 +0300)
Convert the Renesas R-Car Display Unit LVDS driver from
SET_RUNTIME_PM_OPS() to RUNTIME_PM_OPS(), and pm_ptr().  This reduces
kernel size in case CONFIG_PM is disabled.  While DRM_RCAR_LVDS depends
on PM, the code may still serve as an example for new drivers.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Link: https://lore.kernel.org/r/2264ff4f21a7e17384822e0efba176cf78ae184d.1756999823.git.geert+renesas@glider.be
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
drivers/gpu/drm/renesas/rcar-du/rcar_lvds.c

index af58b814e5887f2e231338c1d87feedf4db5e754..001b3543924a873066d3ac554f3ebc0b1c5bfee8 100644 (file)
@@ -1013,7 +1013,7 @@ err_reset_assert:
 }
 
 static const struct dev_pm_ops rcar_lvds_pm_ops = {
-       SET_RUNTIME_PM_OPS(rcar_lvds_runtime_suspend, rcar_lvds_runtime_resume, NULL)
+       RUNTIME_PM_OPS(rcar_lvds_runtime_suspend, rcar_lvds_runtime_resume, NULL)
 };
 
 static struct platform_driver rcar_lvds_platform_driver = {
@@ -1021,7 +1021,7 @@ static struct platform_driver rcar_lvds_platform_driver = {
        .remove         = rcar_lvds_remove,
        .driver         = {
                .name   = "rcar-lvds",
-               .pm     = &rcar_lvds_pm_ops,
+               .pm     = pm_ptr(&rcar_lvds_pm_ops),
                .of_match_table = rcar_lvds_of_table,
        },
 };