]> git.ipfire.org Git - thirdparty/linux.git/commit
serial: st-asc: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr()
authorRaphael Gallais-Pou <rgallaispou@gmail.com>
Tue, 16 Jul 2024 18:00:10 +0000 (20:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Jul 2024 10:32:25 +0000 (12:32 +0200)
commit68c341c888f448410de027ca4b3d113f2b437c54
treecf811c9ad5e818c5450e2516af5877b45aae8c42
parent8400291e289ee6b2bf9779ff1c83a291501f017b
serial: st-asc: 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://lore.kernel.org/r/20240716180010.126987-1-rgallaispou@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/st-asc.c