spi: use modern PM macros

Jisheng Zhang <jszhang@kernel.org> says:

Use the modern PM macros for the suspend and resume functions to be
automatically dropped by the compiler when CONFIG_PM or
CONFIG_PM_SLEEP are disabled, without having to use #ifdef guards or
__maybe_unused.

Compiled testd for arm, arm64, riscv and riscv64 with below
combinations:
!PM && !PM_SLEEP
PM && !PM_SLEEP
PM && PM_SLEEP

Link: https://patch.msgid.link/20260803142003.12857-1-jszhang@kernel.org
This commit is contained in:
Mark Brown 2026-08-07 18:58:32 +01:00
commit 1ec281b42e
No known key found for this signature in database
GPG key ID: 24D68B725D5487D0
43 changed files with 195 additions and 289 deletions