Commit b5ddb9ab authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Tomi Valkeinen
Browse files

drm: rcar-du: lvds: Convert to RUNTIME_PM_OPS()



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: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Link: https://lore.kernel.org/r/2264ff4f21a7e17384822e0efba176cf78ae184d.1756999823.git.geert+renesas@glider.be


Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
parent 9cd6b43a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1013,7 +1013,7 @@ static int rcar_lvds_runtime_resume(struct device *dev)
}

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,
	},
};