power: reset: gpio-poweroff: use a struct to store the module variables
authorStefan Eichenberger <stefan.eichenberger@toradex.com>
Fri, 6 Oct 2023 13:04:25 +0000 (10:04 -0300)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Fri, 13 Oct 2023 00:22:36 +0000 (02:22 +0200)
commit13b4c6964665cadb9b06c085029710c43a0c662e
tree024a0bd72ba5fdacad9ba605833634fdc094adc3
parent3f26d8b6d1cbd41c5fa663c9ea48a2b832cfb58f
power: reset: gpio-poweroff: use a struct to store the module variables

Use a struct to store the module variables. This is required to later
move to notifier_blocks where we can have several instances.

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-2-francesco@dolcini.it
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/reset/gpio-poweroff.c