]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/bridge: imx8qm-ldb: Switch to RUNTIME_PM_OPS()
authorFabio Estevam <festevam@denx.de>
Wed, 26 Jun 2024 23:07:00 +0000 (20:07 -0300)
committerNeil Armstrong <neil.armstrong@linaro.org>
Fri, 13 Sep 2024 08:10:16 +0000 (10:10 +0200)
commit02b16c5236e1823047f001b9496e59458c9a7482
tree47a33cc84c788d1dbb52a115b1ffa148fe7c0fe8
parent017703370638c07cd6affe661118f697ee113881
drm/bridge: imx8qm-ldb: 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: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20240626230704.708234-2-festevam@gmail.com
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240626230704.708234-2-festevam@gmail.com
drivers/gpu/drm/bridge/imx/imx8qm-ldb.c