qemu/hw/gpio
Peter Maydell ad80e36744 hw, target: Add ResetType argument to hold and exit phase methods
We pass a ResetType argument to the Resettable class enter
phase method, but we don't pass it to hold and exit, even though
the callsites have it readily available. This means that if
a device cared about the ResetType it would need to record it
in the enter phase method to use later on. Pass the type to
all three of the phase methods to avoid having to do that.

Commit created with

  for dir in hw target include; do \
      spatch --macro-file scripts/cocci-macro-file.h \
             --sp-file scripts/coccinelle/reset-type.cocci \
             --keep-comments --smpl-spacing --in-place \
             --include-headers --dir $dir; done

and no manual edits.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@amd.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Luc Michel <luc.michel@amd.com>
Message-id: 20240412160809.1260625-5-peter.maydell@linaro.org
2024-04-25 10:21:06 +01:00
..
aspeed_gpio.c hw/gpio: Constify VMState 2023-12-29 11:17:30 +11:00
bcm2835_gpio.c hw/gpio: Constify VMState 2023-12-29 11:17:30 +11:00
bcm2838_gpio.c hw/gpio: Connect SD controller to BCM2838 GPIO 2024-02-27 13:01:42 +00:00
gpio_key.c hw/gpio: Constify VMState 2023-12-29 11:17:30 +11:00
gpio_pwr.c hw/gpio/gpio_pwr: use shutdown function for reboot 2021-07-02 11:48:36 +01:00
imx_gpio.c hw/gpio: Constify VMState 2023-12-29 11:17:30 +11:00
Kconfig hw/gpio: introduce pcf8574 driver 2024-03-11 22:10:18 +01:00
max7310.c hw/gpio: Constify VMState 2023-12-29 11:17:30 +11:00
meson.build misc/pca955*: Move models under hw/gpio 2024-03-25 15:05:38 +01:00
mpc8xxx.c hw/gpio: Constify VMState 2023-12-29 11:17:30 +11:00
npcm7xx_gpio.c hw, target: Add ResetType argument to hold and exit phase methods 2024-04-25 10:21:06 +01:00
nrf51_gpio.c hw/gpio: Constify VMState 2023-12-29 11:17:30 +11:00
omap_gpio.c hw/gpio/omap_gpio: Use CamelCase for TYPE_OMAP2_GPIO type name 2023-01-12 17:15:09 +00:00
pca9552.c misc/pca955*: Move models under hw/gpio 2024-03-25 15:05:38 +01:00
pca9554.c * Fix timeouts in Travis-CI jobs 2024-03-25 14:19:42 +00:00
pcf8574.c hw/gpio: introduce pcf8574 driver 2024-03-11 22:10:18 +01:00
pl061.c hw, target: Add ResetType argument to hold and exit phase methods 2024-04-25 10:21:06 +01:00
sifive_gpio.c hw/gpio: Constify VMState 2023-12-29 11:17:30 +11:00
stm32l4x5_gpio.c hw, target: Add ResetType argument to hold and exit phase methods 2024-04-25 10:21:06 +01:00
trace-events misc/pca955*: Move models under hw/gpio 2024-03-25 15:05:38 +01:00
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00
zaurus.c hw/gpio: Constify VMState 2023-12-29 11:17:30 +11:00