]> Gentwo Git Trees - linux/.git/commit
media: renesas: rcar_drif: Convert to DEFINE_SIMPLE_DEV_PM_OPS()
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 9 Jul 2025 19:16:07 +0000 (21:16 +0200)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Wed, 17 Sep 2025 10:14:04 +0000 (12:14 +0200)
commita0e4177138769d6ac23d6802c92409049a899fd8
tree8c000d39744c779775c9c89f453b53d9f44cbaab
parent0e2ee70291e64a30fe36960c85294726d34a103e
media: renesas: rcar_drif: Convert to DEFINE_SIMPLE_DEV_PM_OPS()

Convert the Renesas Digital Radio Interface driver from
SIMPLE_DEV_PM_OPS() to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr().
This lets us drop the __maybe_unused annotations from its suspend and
resume callbacks, and reduces kernel size in case CONFIG_PM or
CONFIG_PM_SLEEP is disabled.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Fabrizio Castro <fabrizio.castro.jz@renesas.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/platform/renesas/rcar_drif.c