media: imx-mipi-csis: Switch to RUNTIME_PM_OPS()
authorFabio Estevam <festevam@denx.de>
Wed, 7 Aug 2024 18:26:09 +0000 (15:26 -0300)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 23 Aug 2024 13:55:30 +0000 (16:55 +0300)
commit4e3972533f8133cdc2ce5da9c46af8fbe14a573f
treeb97ca67e3ac55bb02d13597e5f15a176f00635a8
parent3f6a2f8768e91cdb69947cb589d0b3a09114be83
media: imx-mipi-csis: Switch to RUNTIME_PM_OPS()

Replace SET_RUNTIME_PM_OPS() with its modern RUNTIME_PM_OPS()
alternative.

The combined usage of pm_ptr() and RUNTIME_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-1-festevam@gmail.com
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
drivers/media/platform/nxp/imx-mipi-csis.c