Re: [PATCH] spi: st: fix PM macros to use CONFIG_PM instead of CONFIG_PM_SLEEP
From: Geert Uytterhoeven
Date: Thu Aug 21 2025 - 03:31:59 EST
On Wed, 20 Aug 2025 at 20:03, Raphael Gallais-Pou <rgallaispou@xxxxxxxxx> wrote:
> pm_sleep_ptr() depends on CONFIG_PM_SLEEP while pm_ptr() depends on
> CONFIG_PM. Since ST SSC4 implements runtime PM it makes sense using
> pm_ptr() here.
>
> For the same reason replace PM macros that use CONFIG_PM. Doing so
> prevents from using __maybe_unused attribute of runtime PM functions.
>
> Link: https://lore.kernel.org/lkml/CAMuHMdX9nkROkAJJ5odv4qOWe0bFTmaFs=Rfxsfuc9+DT-bsEQ@xxxxxxxxxxxxxx
> Fixes: 6f8584a4826f ("spi: st: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr()")
>
> Signed-off-by: Raphael Gallais-Pou <rgallaispou@xxxxxxxxx>
Reviewed-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds