Re: [PATCH] drivers: misc: Convert to DEFINE_SIMPLE_DEV_PM_OPS()
From: Arnd Bergmann
Date: Sat Aug 22 2026 - 06:20:18 EST
On Fri, Aug 21, 2026, at 14:13, Triet Hoang wrote:
> Convert the deprecated SIMPLE_DEV_PM_OPS
> to DEFINE_SIMPLE_DEV_PM_OPS
> and pm_sleep_ptr().
>
> This lets us drop the __maybe_unused annotations
> from the suspend and resume callbacks,
> also reduces kernel size in case CONFIG_PM or
> CONFIG_PM_SLEEP is disabled.
>
> Also allow to remove #ifdef CONFIG_PM_SLEEP.
>
> Signed-off-by: Triet Hoang <triet.hoang.dev@xxxxxxxxx>
These all look good to me, thanks for helping out here!
Acked-by: Arnd Bergmann <arnd@xxxxxxxx>