]> git.ipfire.org Git - thirdparty/linux.git/commit
thermal/drivers/st: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr()
authorRaphael Gallais-Pou <rgallaispou@gmail.com>
Tue, 16 Jul 2024 17:34:51 +0000 (19:34 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 2 Sep 2024 10:43:20 +0000 (12:43 +0200)
commit27fec3cc9ee42fcf21f4527d60dbc1f824e592b1
tree245f2bd9f76bee12cfb2da3b9327297836385887
parent77545bdfe4bf11685fa0d75b3639fd443c481988
thermal/drivers/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.

Remove those guards on every ST thermal related drivers.

Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Signed-off-by: Raphael Gallais-Pou <rgallaispou@gmail.com>
Link: https://lore.kernel.org/r/20240716-thermal-v4-1-947b327e165c@gmail.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/thermal/st/st_thermal.c
drivers/thermal/st/st_thermal_memmap.c
drivers/thermal/st/stm_thermal.c