media: platform: rzg2l-cru: rzg2l-csi2: Switch to RUNTIME_PM_OPS()
authorBiju Das <biju.das.jz@bp.renesas.com>
Tue, 13 Feb 2024 18:12:29 +0000 (18:12 +0000)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 15 Feb 2024 09:57:54 +0000 (10:57 +0100)
commitf243df0a0be0bee39d60136a8f2d1616c63deb1c
treef36a3d784c7f2a1a2b7a45462a845d106a5e378e
parent8c64f4cdf4e6cc5682c52523713af8c39c94e6d5
media: platform: rzg2l-cru: rzg2l-csi2: Switch to RUNTIME_PM_OPS()

Replace the old SET_RUNTIME_PM_OPS() helpers with its modern alternative
RUNTIME_PM_OPS(). The usage of pm_ptr and RUNTIME_PM_OPS() allows the
compiler to see where it's used but still drop the dead code. After this
we can get rid of the unnecessary '__maybe_unused' annotations on PM
functions.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Link: https://lore.kernel.org/r/20240213181233.242316-2-biju.das.jz@bp.renesas.com
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/platform/renesas/rzg2l-cru/rzg2l-csi2.c