spi: st: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr()
authorRaphael Gallais-Pou <rgallaispou@gmail.com>
Mon, 9 Jun 2025 21:21:09 +0000 (23:21 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 15 Jul 2025 12:28:53 +0000 (13:28 +0100)
commit6f8584a4826f01a55d3d0c4bbad5961f1de52fc9
tree124b3b9a50940bae57f1cbd74a267fa9c839e5de
parent7d61715c58a39edc5f74fc7366487726fc223530
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>
drivers/spi/spi-st-ssc4.c