[PATCH 2/4] mfd: max77620: convert poweroff support to sys-off API
Thierry Reding
thierry.reding at kernel.org
Thu May 28 13:54:59 PDT 2026
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 at tecnico.ulisboa.pt>
> ---
> drivers/mfd/max77620.c | 22 +++++++++++++---------
> 1 file changed, 13 insertions(+), 9 deletions(-)
Reviewed-by: Thierry Reding <treding at nvidia.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20260528/ab90cab1/attachment-0001.sig>
More information about the linux-arm-kernel
mailing list