]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mtd: st_spi_fsm: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr()
authorRaphael Gallais-Pou <rgallaispou@gmail.com>
Thu, 9 Jan 2025 15:52:33 +0000 (16:52 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 15 Jan 2025 18:10:29 +0000 (19:10 +0100)
commit29b9415889d42e6a32ead89cf897f65696d3cb47
tree6c7495eb0888af74db593c09ded3f0a04678090e
parentbf5821909eb9c7f5d07d5c6e852ead2c373c94a0
mtd: st_spi_fsm: 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>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/devices/st_spi_fsm.c