linux/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 power/reset: arm-versatile: Fix refcount leak in versatile_reboot_probe 2022-06-09 21:08:38 +02:00
as3722-poweroff.c power: reset: remove MODULE_LICENSE in non-modules 2023-04-13 13:13:53 -07:00
at91-poweroff.c power: reset: at91-poweroff: move shdwc related data to one structure 2018-12-06 21:56:37 +01:00
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 power: reset: at91-sama5d2_shdwc: Remove redundant error printing in at91_shdwc_probe() 2021-06-04 13:04:01 +02:00
atc260x-poweroff.c power: reset: Add poweroff driver for ATC260x PMICs 2021-01-13 22:17:23 +01:00
axxia-reset.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284 2019-06-05 17:36:37 +02:00
brcm-kona-reset.c treewide: Replace GPLv2 boilerplate/reference with SPDX - gpl-2.0_30.RULE (part 2) 2022-06-10 14:51:35 +02:00
brcmstb-reboot.c treewide: Replace GPLv2 boilerplate/reference with SPDX - gpl-2.0_30.RULE (part 2) 2022-06-10 14:51:35 +02:00
gemini-poweroff.c power: reset: gemini-poweroff: Fix IRQ check in gemini_poweroff_probe 2022-02-01 11:07:59 +01:00
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 power: reset: hisi-reboot: add missing MODULE_DEVICE_TABLE 2021-04-09 13:50:01 +02:00
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 power: reset: linkstation-poweroff: add new device 2021-08-13 19:16:41 +02:00
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 treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284 2019-06-05 17:36:37 +02:00
mt6323-poweroff.c power: reset: mt6397: remove MODULE_LICENSE in non-modules 2023-04-13 13:13:52 -07:00
nvmem-reboot-mode.c power: reset: nvmem-reboot-mode: use NVMEM as reboot mode write interface 2019-06-25 23:58:40 +02:00
ocelot-reset.c power: reset: ocelot: Add support 2 other MIPS based SoCs 2020-11-29 22:34:07 +01:00
odroid-go-ultra-poweroff.c power: reset: add Odroid Go Ultra poweroff driver 2023-02-14 23:02:39 +01:00
oxnas-restart.c power: reset: introduce oxnas-restart 2020-04-30 23:24:33 +02:00
piix4-poweroff.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
pwr-mlxbf.c power: reset: pwr-mlxbf: change rst_pwr_hid and low_pwr_hid from global to local variables 2022-06-29 21:41:59 +02:00
qcom-pon.c power: reset: qcom-pon: add support for pm8941-pon 2023-06-09 21:18:17 +02:00
qnap-poweroff.c power: reset: Use printk format symbol resolver 2020-11-30 02:10:18 +01:00
reboot-mode.c power: reset: reboot-mode: Fix author email format 2019-09-02 21:05:59 +02:00
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 power: reset: convert to SPDX identifiers 2018-09-16 11:42:48 +02:00
sc27xx-poweroff.c power supply and reset changes for the v5.7 series 2020-04-05 13:47:57 -07:00
st-poweroff.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
syscon-poweroff.c power: reset: Use printk format symbol resolver 2020-11-30 02:10:18 +01:00
syscon-reboot-mode.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
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 power: reset: remove unneeded semicolon 2021-03-22 14:55:50 +01:00
xgene-reboot.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00