]> git.ipfire.org Git - thirdparty/linux.git/commit
thermal/drivers/imx: Remove __maybe_unused notations
authorFabio Estevam <festevam@denx.de>
Tue, 20 Aug 2024 01:26:16 +0000 (22:26 -0300)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 2 Sep 2024 11:17:53 +0000 (13:17 +0200)
commit41df03900dc586d556b99d4905bed2c1a2e83abf
treeff5fe092321fe2ff3efef86e97c50b0f7d4181b2
parentbf2876f6bae3f9ece8d781627623630963b19333
thermal/drivers/imx: Remove __maybe_unused notations

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 __maybe_unused notations from the suspend/resume()
functions.

Signed-off-by: Fabio Estevam <festevam@denx.de>
Link: https://lore.kernel.org/r/20240820012616.1449210-2-festevam@gmail.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/thermal/imx_thermal.c