]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
spi: stm32-ospi: avoid __maybe_unused and use pm_ptr
authorAlain Volmat <alain.volmat@foss.st.com>
Tue, 6 Jan 2026 12:14:18 +0000 (13:14 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 6 Jan 2026 12:23:37 +0000 (12:23 +0000)
commit2a2d7187f5a7238582c2bbd4a6da7595c20e55a9
tree7ef9d08832ba413b87c9a6a1793dec9235c28f23
parentd4469e4ee5da0a93eabfcb89a8c6ecdf7cf1e9be
spi: stm32-ospi: avoid __maybe_unused and use pm_ptr

Switch to usage of pm_ptr / SYSTEM_SLEEP_PM_OPS / RUNTIME_PM_OPS
in order to avoid having to mark the pm related functions as
__maybe_unused.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
Link: https://patch.msgid.link/20260106-spi_st_maybe_unused_removal-v1-2-8f5ca7136e96@foss.st.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-stm32-ospi.c