]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: rcar_jpu: Convert to DEFINE_SIMPLE_DEV_PM_OPS()
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 4 Sep 2025 15:33:34 +0000 (17:33 +0200)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Mon, 3 Nov 2025 14:58:41 +0000 (15:58 +0100)
commit959d787979e349858a96639415b410fcc1345806
tree3e6d773426de132964c281dd26b12e6635b8cf05
parent445e1658894fd74eab7e53071fa16233887574ed
media: rcar_jpu: Convert to DEFINE_SIMPLE_DEV_PM_OPS()

Convert the Renesas JPEG Processing Unit driver from an open-coded
dev_pm_ops structure to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr().
This lets us drop the check for CONFIG_PM_SLEEP, and reduces kernel size
in case CONFIG_PM or CONFIG_PM_SLEEP is disabled, while increasing build
coverage.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Nikita Yushchenko <nikita.yoush@cogentembedded.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/platform/renesas/rcar_jpu.c