On Mon, Nov 07, 2022 at 05:50:48PM +0000, Paul Cercueil wrote:
> Use the DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() macros to handle
> the .suspend/.resume callbacks.
> 
> These macros allow the suspend and resume functions to be automatically
> dropped by the compiler when CONFIG_SUSPEND is disabled, without having
> to use #ifdef guards.
> 
> This has the advantage of always compiling these functions in,
> independently of any Kconfig option. Thanks to that, bugs and other
> regressions are subsequently easier to catch.
> 
> Signed-off-by: Paul Cercueil <p...@crapouillou.net>
> ---
> Cc: Sam Ravnborg <s...@ravnborg.org>
> Cc: Boris Brezillon <bbrezil...@kernel.org>
> Cc: Nicolas Ferre <nicolas.fe...@microchip.com>
> Cc: Alexandre Belloni <alexandre.bell...@bootlin.com>
> Cc: Claudiu Beznea <claudiu.bez...@microchip.com>
> Cc: linux-arm-ker...@lists.infradead.org
Acked-by: Sam Ravnborg <s...@ravnborg.org>

Thanks for taking care of this.

        Sam

Reply via email to