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)
|
||
|---|---|---|
| .. | ||
| dwc3 | ||
| atmegadci.c | ||
| atmegadci.h | ||
| avr32dci.c | ||
| avr32dci.h | ||
| dwc_otg.c | ||
| dwc_otg.h | ||
| dwc_otg_acpi.c | ||
| dwc_otg_fdt.c | ||
| dwc_otg_fdt.h | ||
| dwc_otg_hisi.c | ||
| dwc_otgreg.h | ||
| ehci.c | ||
| ehci.h | ||
| ehci_fsl.c | ||
| ehci_imx.c | ||
| ehci_msm.c | ||
| ehci_mv.c | ||
| ehci_pci.c | ||
| ehcireg.h | ||
| generic_ehci.c | ||
| generic_ehci.h | ||
| generic_ehci_acpi.c | ||
| generic_ehci_fdt.c | ||
| generic_ohci.c | ||
| generic_usb_if.m | ||
| generic_xhci.c | ||
| generic_xhci.h | ||
| generic_xhci_acpi.c | ||
| generic_xhci_fdt.c | ||
| musb_otg.c | ||
| musb_otg.h | ||
| musb_otg_allwinner.c | ||
| ohci.c | ||
| ohci.h | ||
| ohci_pci.c | ||
| ohcireg.h | ||
| uhci.c | ||
| uhci.h | ||
| uhci_pci.c | ||
| uhcireg.h | ||
| usb_controller.c | ||
| usb_nop_xceiv.c | ||
| uss820dci.c | ||
| uss820dci.h | ||
| xhci.c | ||
| xhci.h | ||
| xhci_pci.c | ||
| xhcireg.h | ||
| xlnx_dwc3.c | ||