opnsense-src/sys/dev/gpio
Enji Cooper 1b5bee9b2d chore: replace {0, 0} with {DEV,KOBJ}METHOD_END
Both of the aforementioned macros have been present in FreeBSD
for well over a decade: 2009 for `KOBJMETHOD_END`; 2011 for
`DEVMETHOD_END`.

Adapt all hardcoded references of `{0, 0}` with `DEVMETHOD_END`
and `KOBJMETHOD_END` as appropriate. This helps ensure that
future adaptations to drivers following patterns documented
in driver(9) can be made more easily/without issue.

MFC after:	1 week
Differential Revision:	 https://reviews.freebsd.org/D55414

MFC notes:
- All changes to nvme/nvd were dropped as they didn't apply.
- Change to ufshci_pci.c was adjusted to match code in branch.

Conflicts:
	sys/dev/nvd/nvd.c
	sys/dev/nvme/nvme_sim.c
	sys/dev/ufshci/ufshci_pci.c

(cherry picked from commit 0fc6c3f731a2cca3120798806c330a3081c9424b)
2026-04-25 09:46:07 -07:00
..
dwgpio chore: replace {0, 0} with {DEV,KOBJ}METHOD_END 2026-04-25 09:46:07 -07:00
acpi_gpiobus.c acpi_gpiobus: implement bus_child_location 2025-08-20 09:52:11 +03:00
acpi_gpiobusvar.h gpio: rework gpioaei 2025-08-20 09:52:11 +03:00
bytgpio.c gpio: remove gpiobus_attach_bus 2025-08-13 14:14:00 +03:00
chvgpio.c gpio: remove gpiobus_attach_bus 2025-08-13 14:14:00 +03:00
chvgpio_reg.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
gpio_if.m gpio: add GPIO_GET_PIN_LIST 2025-08-28 00:38:32 +03:00
gpioaei.c gpio: rework gpioaei 2025-08-20 09:52:11 +03:00
gpiobacklight.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
gpiobus.c gpiobus: use bus_generic_detach when detaching 2025-11-02 18:20:52 +02:00
gpiobus_if.m gpiobus: add pin_config_32 and pin_access_32 2025-08-28 00:38:31 +03:00
gpiobus_internal.h gpio: make gpioc a child of gpiobus 2025-08-28 00:38:32 +03:00
gpiobusvar.h gpio: remove gpiobus_attach_bus 2025-08-13 14:14:00 +03:00
gpioc.c Match style in 3613896 2025-11-01 02:46:11 +02:00
gpioiic.c Use bus_detach_children instead of bus_generic_detach 2025-01-02 13:19:39 -05:00
gpiokeys.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
gpiokeys.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
gpiokeys_codes.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
gpioled.c gpioled: remove redundant -1 check 2025-09-21 13:03:14 +03:00
gpioled_fdt.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
gpiomdio.c Remove bogus detach routines 2024-11-04 20:31:16 -05:00
gpiopower.c gpiopower: trigger low, high and both edges 2024-01-28 13:29:41 +02:00
gpiopps.c gpiopps: don't use internal gpiobus function 2025-07-04 23:24:31 +03:00
gpioregulator.c regulator: Move regulator code in dev/regulator 2024-01-10 19:20:32 +01:00
gpiospi.c Replace calls to bus_generic_attach with bus_attach_children 2024-12-06 17:26:16 -05:00
gpioths.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
ofw_gpiobus.c gpio: make gpioc a child of gpiobus 2025-08-28 00:38:32 +03:00
pl061.c gpio: implement bus_setup_intr and bus_teardown_intr 2025-10-01 12:37:36 +03:00
pl061.h gpio: attach gpiobus when the controller is ready 2025-07-04 16:56:00 +03:00
pl061_acpi.c gpio: attach gpiobus when the controller is ready 2025-07-04 16:56:00 +03:00
pl061_fdt.c gpio: attach gpiobus when the controller is ready 2025-07-04 16:56:00 +03:00
qoriq_gpio.c gpio: remove gpiobus_attach_bus 2025-08-13 14:14:00 +03:00
qoriq_gpio.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00