Re: [PATCH v6] auxdisplay: arm-charlcd: Use DEFINE_SIMPLE_DEV_PM_OPS for power management

From: Andy Shevchenko

Date: Thu Sep 03 2026 - 08:04:20 EST


On Thu, Aug 27, 2026 at 08:28:12AM +0800, Li Jun wrote:
> Replace the manually defined dev_pm_ops structure with the
> DEFINE_SIMPLE_DEV_PM_OPS macro to simplify the power management
> code, pm_sleep_ptr() to safely drop the references without
> triggering compiler warnings. This macro automatically handles
> CONFIG_PM_SLEEP configuration and generates freeze/thaw/poweroff/restore
> callbacks, reducing boilerplate code.

Pushed to my review and testing queue, thanks!

--
With Best Regards,
Andy Shevchenko