]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: imx8mq-mipi-csi2: Switch to RUNTIME/SYSTEM_SLEEP_PM_OPS()
authorFabio Estevam <festevam@denx.de>
Wed, 7 Aug 2024 18:26:10 +0000 (15:26 -0300)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 23 Aug 2024 13:55:30 +0000 (16:55 +0300)
commit4fb5babe965768daf497503f4082e74abd1c0fed
tree08cfdc4b98abe10cc9bd3683de7df83d3d5ecb76
parent4e3972533f8133cdc2ce5da9c46af8fbe14a573f
media: imx8mq-mipi-csi2: Switch to RUNTIME/SYSTEM_SLEEP_PM_OPS()

Replace SET_RUNTIME_PM_OPS()/SET SYSTEM_SLEEP_PM_OPS() with their modern
RUNTIME_PM_OPS() and SYSTEM_SLEEP_PM_OPS() alternatives.

The combined usage of pm_ptr() and RUNTIME_PM_OPS/SYSTEM_SLEEP_PM_OPS()
allows the compiler to evaluate if the runtime suspend/resume() functions
are used at build time or are simply dead code.

This allows removing the __maybe_unused notation from the runtime
suspend/resume() functions..

Signed-off-by: Fabio Estevam <festevam@denx.de>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://lore.kernel.org/r/20240807182610.81244-2-festevam@gmail.com
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
drivers/media/platform/nxp/imx8mq-mipi-csi2.c