On Thu, Aug 08, 2024 at 11:08:22PM -0300, Fabio Estevam wrote: > From: Fabio Estevam <festevam@xxxxxxx> > > 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 __maybe_unused notation. > > Signed-off-by: Fabio Estevam <festevam@xxxxxxx> Reviewed-by: Guenter Roeck <linux@xxxxxxxxxxxx>