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

From: Andy Shevchenko

Date: Fri Aug 21 2026 - 05:27:47 EST


On Thu, Aug 20, 2026 at 10:32: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.
> This macro automatically handles CONFIG_PM_SLEEP configuration
> and generates freeze/thaw/poweroff/restore callbacks, reducing
> boilerplate code.

> Changes:
> -Replace SIMPLE_DEV_PM_OPS() in v1 v2 with DEFINE_SIMPLE_DEV_PM_OPS() for pm.
> -Corrected grammar errors in v1 comment.

As Dan (IIRC) said, please move changelog to the below '---' cutter line and
address all my comments.

--
With Best Regards,
Andy Shevchenko