]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mfd: max77620: Convert poweroff support to sys-off API
authorDiogo Ivo <diogo.ivo@tecnico.ulisboa.pt>
Thu, 14 May 2026 14:47:20 +0000 (16:47 +0200)
committerLee Jones <lee@kernel.org>
Wed, 17 Jun 2026 10:32:41 +0000 (11:32 +0100)
commitf01e402bebf8a2f3843990b209b3f50cf536dbf8
tree5622c4fa8468254b5dcf422da50c7941693361ce
parent7502c035b884b73f51669cada3f4022cd11e8f5c
mfd: max77620: Convert poweroff support to sys-off API

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@tecnico.ulisboa.pt>
Link: https://patch.msgid.link/20260514-smaug-poweroff-v1-2-30f9a4688966@tecnico.ulisboa.pt
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/max77620.c