linux-stable/drivers/power/reset
Miquel Raynal cba266a4f6 power: reset: at91-reset: change the power on reason prototype
It is quite uncommon to use a driver helper with parameters like *pdev
and __iomem *base. It is much cleaner and close to today's standards to
provide the per-device driver structure and then access its
internals. Let's do this with the helper which returns the power on
reason. While we change the parameters, we can as well rename the
function from at91_reset_status() to at91_reset_reason() to be more
accurate with what the helper actually does, and finally because we don't
really need the pdev argument in this helper besides for printing the
reset reason, we can move the dev_info() call into the probe.

All these modifications prepare the introduction of a sysfs entry to
access this information. This way the diff will be much smaller. Thus,
there is no intended functional change.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
2023-06-19 23:33:14 +02:00
..
arm-versatile-reboot.c
as3722-poweroff.c power: reset: remove MODULE_LICENSE in non-modules 2023-04-13 13:13:53 -07:00
at91-poweroff.c
at91-reset.c power: reset: at91-reset: change the power on reason prototype 2023-06-19 23:33:14 +02:00
at91-sama5d2_shdwc.c
atc260x-poweroff.c
axxia-reset.c
brcm-kona-reset.c
brcmstb-reboot.c
gemini-poweroff.c
gpio-poweroff.c power: reset: remove MODULE_LICENSE in non-modules 2023-04-13 13:13:53 -07:00
gpio-restart.c power: reset: gpio-restart: Convert to platform remove callback returning void 2023-05-08 14:41:00 +02:00
hisi-reboot.c
Kconfig power: reset: add HAS_IOPORT dependencies 2023-05-16 21:58:57 +02:00
keystone-reset.c power: reset: keystone-reset: remove MODULE_LICENSE in non-modules 2023-04-13 13:13:51 -07:00
linkstation-poweroff.c
ltc2952-poweroff.c power: reset: remove MODULE_LICENSE in non-modules 2023-04-13 13:13:53 -07:00
Makefile power: reset: add Odroid Go Ultra poweroff driver 2023-02-14 23:02:39 +01:00
msm-poweroff.c
mt6323-poweroff.c power: reset: mt6397: remove MODULE_LICENSE in non-modules 2023-04-13 13:13:52 -07:00
nvmem-reboot-mode.c
ocelot-reset.c
odroid-go-ultra-poweroff.c power: reset: add Odroid Go Ultra poweroff driver 2023-02-14 23:02:39 +01:00
oxnas-restart.c
piix4-poweroff.c
pwr-mlxbf.c
qcom-pon.c power: reset: qcom-pon: add support for pm8941-pon 2023-06-09 21:18:17 +02:00
qnap-poweroff.c
reboot-mode.c
regulator-poweroff.c power: reset: remove MODULE_LICENSE in non-modules 2023-04-13 13:13:53 -07:00
restart-poweroff.c power: reset: remove MODULE_LICENSE in non-modules 2023-04-13 13:13:53 -07:00
rmobile-reset.c
sc27xx-poweroff.c
st-poweroff.c
syscon-poweroff.c
syscon-reboot-mode.c
syscon-reboot.c power: reset: syscon-reboot: Add support for specifying priority 2023-02-03 13:10:56 +01:00
tps65086-restart.c power: reset: remove MODULE_LICENSE in non-modules 2023-04-13 13:13:53 -07:00
vexpress-poweroff.c
xgene-reboot.c