power: reset: gpio-poweroff: use sys-off handler API
authorStefan Eichenberger <stefan.eichenberger@toradex.com>
Fri, 6 Oct 2023 13:04:26 +0000 (10:04 -0300)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Fri, 13 Oct 2023 00:22:36 +0000 (02:22 +0200)
commitb16d9f49735f3d26e23f0ba4a2cf21668fc6b66b
tree0136e9107e85a908ce6536b96f561bb0268b20e0
parent13b4c6964665cadb9b06c085029710c43a0c662e
power: reset: gpio-poweroff: use sys-off handler API

Use the new sys-off handler API for gpio-poweroff. This allows us to
have more than one poweroff handler and prioritise them.

Signed-off-by: Stefan Eichenberger <stefan.eichenberger@toradex.com>
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Link: https://lore.kernel.org/r/20231006130428.11259-3-francesco@dolcini.it
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/reset/gpio-poweroff.c