spi: st: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr()

Letting the compiler remove these functions when the kernel is built
without CONFIG_PM_SLEEP support is simpler and less error prone than the
use of #ifdef based kernel configuration guards.

Signed-off-by: Raphael Gallais-Pou <rgallaispou@gmail.com>
Link: https://patch.msgid.link/20250609-update_pm_macro-v1-1-819a53ef0eed@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Raphael Gallais-Pou 2025-06-09 23:21:09 +02:00 • committed by Mark Brown
commit 6f8584a482
No known key found for this signature in database
GPG key ID: 24D68B725D5487D0