]> www.infradead.org Git - users/jedix/linux-maple.git/commit
spi: mxs: Switch to RUNTIME/SYSTEM_SLEEP_PM_OPS()
authorFabio Estevam <festevam@denx.de>
Mon, 2 Sep 2024 18:46:55 +0000 (15:46 -0300)
committerMark Brown <broonie@kernel.org>
Tue, 3 Sep 2024 21:07:58 +0000 (22:07 +0100)
commit02774b14439dd5a8982335e779b62628d85eb76b
tree76303a0c247a7e0902e73f850af080ccdc20e9cc
parentbf62a8c7908ee8e0ef61d27d9ff65bf12f41fb0a
spi: mxs: 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 annotations from the
suspend/resume() functions.

Signed-off-by: Fabio Estevam <festevam@denx.de>
Link: https://patch.msgid.link/20240902184655.932699-1-festevam@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-mxs.c