Re: [PATCH 2/4] mfd: max77620: convert poweroff support to sys-off API
From: Thierry Reding
Date: Thu May 28 2026 - 17:01:19 EST
On Thu, May 14, 2026 at 04:47:20PM +0200, Diogo Ivo wrote:
> Convert max77620_pm_power_off() to the sys-off callback prototype and
> register it with the sys-off API when the device tree marks the PMIC as
> a system power controller. This also removes the global max77620_scratch
> pointer by passing the chip instance through the callback data.
>
> This modernizes the driver's poweroff handling and aligns it with
> the kernel sys-off infrastructure.
>
> Signed-off-by: Diogo Ivo <diogo.ivo@xxxxxxxxxxxxxxxxxx>
> ---
> drivers/mfd/max77620.c | 22 +++++++++++++---------
> 1 file changed, 13 insertions(+), 9 deletions(-)
Reviewed-by: Thierry Reding <treding@xxxxxxxxxx>
Attachment:
signature.asc
Description: PGP signature