Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Rename of_match_compat_data() to of_compatible_match(). ...
details: https://anonhg.NetBSD.org/src/rev/1499b49cadff
branches: trunk
changeset: 950386:1499b49cadff
user: thorpej <thorpej%NetBSD.org@localhost>
date: Wed Jan 27 03:10:18 2021 +0000
description:
Rename of_match_compat_data() to of_compatible_match(). Similarly,
rename of_search_compatible() to of_compatible_lookup().
Standardize on of_compatible_match() for driver matching, and adapt
all call sites.
diffstat:
sys/arch/arm/altera/cycv_clkmgr.c | 8 +-
sys/arch/arm/altera/cycv_dwcmmc.c | 12 +-
sys/arch/arm/altera/cycv_gmac.c | 11 +-
sys/arch/arm/altera/cycv_rstmgr.c | 12 ++-
sys/arch/arm/amlogic/meson6_timer.c | 14 +-
sys/arch/arm/amlogic/meson8b_clkc.c | 14 +-
sys/arch/arm/amlogic/meson_dwmac.c | 18 ++--
sys/arch/arm/amlogic/meson_genfb.c | 14 +-
sys/arch/arm/amlogic/meson_pinctrl.c | 8 +-
sys/arch/arm/amlogic/meson_pwm.c | 6 +-
sys/arch/arm/amlogic/meson_resets.c | 16 ++--
sys/arch/arm/amlogic/meson_rng.c | 12 +-
sys/arch/arm/amlogic/meson_rtc.c | 12 +-
sys/arch/arm/amlogic/meson_sdhc.c | 20 ++--
sys/arch/arm/amlogic/meson_sdio.c | 20 ++--
sys/arch/arm/amlogic/meson_thermal.c | 8 +-
sys/arch/arm/amlogic/meson_uart.c | 20 ++--
sys/arch/arm/amlogic/meson_usbctrl.c | 8 +-
sys/arch/arm/amlogic/meson_usbphy.c | 8 +-
sys/arch/arm/amlogic/meson_wdt.c | 12 +-
sys/arch/arm/amlogic/mesong12_aoclkc.c | 12 +-
sys/arch/arm/amlogic/mesong12_clkc.c | 8 +-
sys/arch/arm/amlogic/mesong12_usb2phy.c | 12 +-
sys/arch/arm/amlogic/mesong12_usb3pciephy.c | 12 +-
sys/arch/arm/amlogic/mesongx_mmc.c | 8 +-
sys/arch/arm/amlogic/mesongx_wdt.c | 12 +-
sys/arch/arm/amlogic/mesongxbb_aoclkc.c | 14 +-
sys/arch/arm/amlogic/mesongxbb_clkc.c | 8 +-
sys/arch/arm/amlogic/mesongxl_usb2phy.c | 12 +-
sys/arch/arm/amlogic/mesongxl_usb3phy.c | 12 +-
sys/arch/arm/broadcom/bcm2835_aux.c | 12 ++-
sys/arch/arm/broadcom/bcm2835_bsc_fdt.c | 12 ++-
sys/arch/arm/broadcom/bcm2835_cm.c | 15 ++-
sys/arch/arm/broadcom/bcm2835_com.c | 14 +-
sys/arch/arm/broadcom/bcm2835_cprman.c | 16 ++-
sys/arch/arm/broadcom/bcm2835_dmac.c | 15 ++-
sys/arch/arm/broadcom/bcm2835_dwctwo.c | 17 ++--
sys/arch/arm/broadcom/bcm2835_emmc.c | 10 +-
sys/arch/arm/broadcom/bcm2835_genfb.c | 12 ++-
sys/arch/arm/broadcom/bcm2835_gpio.c | 19 ++--
sys/arch/arm/broadcom/bcm2835_intr.c | 10 +-
sys/arch/arm/broadcom/bcm2835_mbox_fdt.c | 12 ++-
sys/arch/arm/broadcom/bcm2835_pmwdog.c | 12 ++-
sys/arch/arm/broadcom/bcm2835_pwm.c | 12 ++-
sys/arch/arm/broadcom/bcm2835_rng.c | 12 ++-
sys/arch/arm/broadcom/bcm2835_sdhost.c | 15 ++-
sys/arch/arm/broadcom/bcm2835_spi.c | 15 ++-
sys/arch/arm/broadcom/bcm2835_tmr.c | 16 ++-
sys/arch/arm/broadcom/bcm2838_rng.c | 12 ++-
sys/arch/arm/broadcom/bcm283x_platform.c | 12 +-
sys/arch/arm/fdt/a9ptmr_fdt.c | 17 ++--
sys/arch/arm/fdt/a9tmr_fdt.c | 17 ++--
sys/arch/arm/fdt/a9wdt_fdt.c | 17 ++--
sys/arch/arm/fdt/aaci_fdt.c | 12 +-
sys/arch/arm/fdt/acpi_fdt.c | 12 +-
sys/arch/arm/fdt/arm_fdt.c | 12 ++-
sys/arch/arm/fdt/arm_simplefb.c | 14 ++-
sys/arch/arm/fdt/gic_fdt.c | 29 ++++---
sys/arch/arm/fdt/gicv3_fdt.c | 10 +-
sys/arch/arm/fdt/gtmr_fdt.c | 17 ++--
sys/arch/arm/fdt/l2cc_fdt.c | 15 ++-
sys/arch/arm/fdt/pcihost_fdt.c | 8 +-
sys/arch/arm/fdt/plcom_fdt.c | 13 ++-
sys/arch/arm/fdt/plfb_fdt.c | 14 +-
sys/arch/arm/fdt/plkmi_fdt.c | 12 +-
sys/arch/arm/fdt/plmmc_fdt.c | 14 +-
sys/arch/arm/fdt/plrtc_fdt.c | 12 +-
sys/arch/arm/fdt/pmu_fdt.c | 34 ++++----
sys/arch/arm/fdt/psci_fdt.c | 16 ++--
sys/arch/arm/fdt/smsh_fdt.c | 14 +-
sys/arch/arm/nvidia/tegra124_car.c | 17 ++--
sys/arch/arm/nvidia/tegra124_cpu.c | 12 ++-
sys/arch/arm/nvidia/tegra124_xusbpad.c | 13 ++-
sys/arch/arm/nvidia/tegra210_car.c | 17 ++--
sys/arch/arm/nvidia/tegra210_xusbpad.c | 15 ++-
sys/arch/arm/nvidia/tegra_ahcisata.c | 8 +-
sys/arch/arm/nvidia/tegra_apbdma.c | 17 ++--
sys/arch/arm/nvidia/tegra_cec.c | 12 ++-
sys/arch/arm/nvidia/tegra_com.c | 18 ++--
sys/arch/arm/nvidia/tegra_drm.c | 30 +++++--
sys/arch/arm/nvidia/tegra_ehci.c | 19 ++--
sys/arch/arm/nvidia/tegra_fuse.c | 17 ++--
sys/arch/arm/nvidia/tegra_gpio.c | 19 ++--
sys/arch/arm/nvidia/tegra_hdaudio.c | 17 ++--
sys/arch/arm/nvidia/tegra_i2c.c | 19 ++--
sys/arch/arm/nvidia/tegra_lic.c | 17 ++--
sys/arch/arm/nvidia/tegra_mc.c | 12 ++-
sys/arch/arm/nvidia/tegra_nouveau.c | 10 +-
sys/arch/arm/nvidia/tegra_pcie.c | 8 +-
sys/arch/arm/nvidia/tegra_pinmux.c | 10 +-
sys/arch/arm/nvidia/tegra_platform.c | 11 +-
sys/arch/arm/nvidia/tegra_pmc.c | 17 ++--
sys/arch/arm/nvidia/tegra_rtc.c | 19 ++--
sys/arch/arm/nvidia/tegra_sdhc.c | 17 ++--
sys/arch/arm/nvidia/tegra_soctherm.c | 8 +-
sys/arch/arm/nvidia/tegra_timer.c | 19 ++--
sys/arch/arm/nvidia/tegra_usbphy.c | 19 ++--
sys/arch/arm/nvidia/tegra_xusb.c | 8 +-
sys/arch/arm/nxp/if_enet_imx.c | 8 +-
sys/arch/arm/nxp/imx6_clk.c | 12 ++-
sys/arch/arm/nxp/imx6_dwhdmi.c | 14 +-
sys/arch/arm/nxp/imx6_gpc.c | 12 ++-
sys/arch/arm/nxp/imx6_iomux.c | 19 ++--
sys/arch/arm/nxp/imx6_ocotp.c | 25 +++---
sys/arch/arm/nxp/imx6_pcie.c | 8 +-
sys/arch/arm/nxp/imx6_platform.c | 20 ++--
sys/arch/arm/nxp/imx6_pwm.c | 12 ++-
sys/arch/arm/nxp/imx6_spi.c | 8 +-
sys/arch/arm/nxp/imx6_usb.c | 14 +-
sys/arch/arm/nxp/imx6_usbphy.c | 12 +-
sys/arch/arm/nxp/imx7_gpc.c | 17 ++--
sys/arch/arm/nxp/imx7d_ccm.c | 20 ++--
sys/arch/arm/nxp/imx8mq_ccm.c | 12 +-
sys/arch/arm/nxp/imx8mq_usbphy.c | 6 +-
sys/arch/arm/nxp/imx_ahcisata.c | 12 ++-
sys/arch/arm/nxp/imx_com.c | 14 +-
sys/arch/arm/nxp/imx_gpio.c | 15 ++-
sys/arch/arm/nxp/imx_i2c.c | 12 ++-
sys/arch/arm/nxp/imx_sdhc.c | 8 +-
sys/arch/arm/nxp/imx_snvs.c | 15 ++-
sys/arch/arm/nxp/imxwdog.c | 17 ++--
sys/arch/arm/rockchip/rk3328_cru.c | 12 +-
sys/arch/arm/rockchip/rk3328_iomux.c | 10 +-
sys/arch/arm/rockchip/rk3399_cru.c | 12 +-
sys/arch/arm/rockchip/rk3399_iomux.c | 8 +-
sys/arch/arm/rockchip/rk3399_pcie.c | 15 ++-
sys/arch/arm/rockchip/rk3399_pcie_phy.c | 12 +-
sys/arch/arm/rockchip/rk3399_pmucru.c | 12 +-
sys/arch/arm/rockchip/rk_anxdp.c | 12 +-
sys/arch/arm/rockchip/rk_drm.c | 12 +-
sys/arch/arm/rockchip/rk_dwhdmi.c | 12 +-
sys/arch/arm/rockchip/rk_emmcphy.c | 12 +-
sys/arch/arm/rockchip/rk_gmac.c | 10 +-
sys/arch/arm/rockchip/rk_gpio.c | 12 +-
sys/arch/arm/rockchip/rk_i2c.c | 12 +-
sys/arch/arm/rockchip/rk_i2s.c | 10 +-
sys/arch/arm/rockchip/rk_pwm.c | 6 +-
sys/arch/arm/rockchip/rk_spi.c | 16 ++--
sys/arch/arm/rockchip/rk_tsadc.c | 8 +-
sys/arch/arm/rockchip/rk_usb.c | 8 +-
sys/arch/arm/rockchip/rk_v1crypto.c | 6 +-
sys/arch/arm/rockchip/rk_vop.c | 8 +-
sys/arch/arm/samsung/exynos5410_clock.c | 12 ++-
sys/arch/arm/samsung/exynos5422_clock.c | 12 ++-
sys/arch/arm/samsung/exynos_combiner.c | 14 ++-
sys/arch/arm/samsung/exynos_dwcmmc.c | 8 +-
sys/arch/arm/samsung/exynos_ehci.c | 15 ++-
sys/arch/arm/samsung/exynos_i2c.c | 12 ++-
sys/arch/arm/samsung/exynos_ohci.c | 15 ++-
sys/arch/arm/samsung/exynos_pinctrl.c | 8 +-
sys/arch/arm/samsung/exynos_platform.c | 8 +-
sys/arch/arm/samsung/exynos_pwm.c | 12 +-
sys/arch/arm/samsung/exynos_rtc.c | 14 ++-
sys/arch/arm/samsung/exynos_uart.c | 14 +-
sys/arch/arm/samsung/exynos_usbdrdphy.c | 6 +-
sys/arch/arm/samsung/exynos_usbphy.c | 6 +-
sys/arch/arm/samsung/exynos_wdt.c | 12 ++-
sys/arch/arm/samsung/mct.c | 15 ++-
sys/arch/arm/sociox/if_ave.c | 8 +-
sys/arch/arm/sociox/if_scx.c | 15 ++-
sys/arch/arm/sociox/sni_emmc.c | 17 ++--
sys/arch/arm/sociox/sni_exiu.c | 15 ++-
sys/arch/arm/sociox/sni_gpio.c | 17 ++--
sys/arch/arm/sociox/sni_i2c.c | 15 ++-
sys/arch/arm/sunxi/sun4i_a10_ccu.c | 8 +-
sys/arch/arm/sunxi/sun4i_dma.c | 6 +-
sys/arch/arm/sunxi/sun4i_emac.c | 12 +-
sys/arch/arm/sunxi/sun4i_spi.c | 12 +-
sys/arch/arm/sunxi/sun50i_a64_acodec.c | 12 +-
sys/arch/arm/sunxi/sun50i_a64_ccu.c | 12 +-
sys/arch/arm/sunxi/sun50i_a64_r_ccu.c | 12 +-
sys/arch/arm/sunxi/sun50i_h6_ccu.c | 12 +-
sys/arch/arm/sunxi/sun50i_h6_r_ccu.c | 12 +-
sys/arch/arm/sunxi/sun5i_a13_ccu.c | 14 +-
sys/arch/arm/sunxi/sun6i_a31_ccu.c | 12 +-
sys/arch/arm/sunxi/sun6i_dma.c | 8 +-
sys/arch/arm/sunxi/sun6i_spi.c | 15 ++-
sys/arch/arm/sunxi/sun8i_a23_apbclk.c | 12 ++-
sys/arch/arm/sunxi/sun8i_a83t_ccu.c | 12 +-
sys/arch/arm/sunxi/sun8i_codec.c | 12 +-
sys/arch/arm/sunxi/sun8i_crypto.c | 6 +-
sys/arch/arm/sunxi/sun8i_h3_ccu.c | 14 +-
sys/arch/arm/sunxi/sun8i_h3_codec.c | 12 +-
sys/arch/arm/sunxi/sun8i_h3_r_ccu.c | 12 +-
sys/arch/arm/sunxi/sun9i_a80_ccu.c | 12 +-
sys/arch/arm/sunxi/sun9i_a80_cpusclk.c | 12 ++-
sys/arch/arm/sunxi/sun9i_a80_mmcclk.c | 12 +-
sys/arch/arm/sunxi/sun9i_a80_usbclk.c | 12 +-
sys/arch/arm/sunxi/sun9i_a80_usbphy.c | 12 +-
sys/arch/arm/sunxi/sunxi_can.c | 6 +-
sys/arch/arm/sunxi/sunxi_codec.c | 8 +-
sys/arch/arm/sunxi/sunxi_de2.c | 12 +-
sys/arch/arm/sunxi/sunxi_de2_ccu.c | 8 +-
sys/arch/arm/sunxi/sunxi_debe.c | 19 ++--
sys/arch/arm/sunxi/sunxi_dep.c | 6 +-
sys/arch/arm/sunxi/sunxi_drm.c | 21 +++--
sys/arch/arm/sunxi/sunxi_dwhdmi.c | 14 +-
sys/arch/arm/sunxi/sunxi_emac.c | 10 +-
sys/arch/arm/sunxi/sunxi_gates.c | 14 +-
sys/arch/arm/sunxi/sunxi_gmac.c | 12 +-
sys/arch/arm/sunxi/sunxi_gmacclk.c | 12 ++-
sys/arch/arm/sunxi/sunxi_gpio.c | 8 +-
sys/arch/arm/sunxi/sunxi_hdmi.c | 8 +-
sys/arch/arm/sunxi/sunxi_hdmiphy.c | 8 +-
sys/arch/arm/sunxi/sunxi_hstimer.c | 16 ++--
sys/arch/arm/sunxi/sunxi_i2s.c | 8 +-
sys/arch/arm/sunxi/sunxi_intc.c | 12 +-
sys/arch/arm/sunxi/sunxi_lcdc.c | 8 +-
sys/arch/arm/sunxi/sunxi_lradc.c | 6 +-
sys/arch/arm/sunxi/sunxi_mixer.c | 8 +-
sys/arch/arm/sunxi/sunxi_mmc.c | 8 +-
sys/arch/arm/sunxi/sunxi_musb.c | 8 +-
sys/arch/arm/sunxi/sunxi_nand.c | 12 +-
sys/arch/arm/sunxi/sunxi_nmi.c | 8 +-
sys/arch/arm/sunxi/sunxi_platform.c | 24 +++---
sys/arch/arm/sunxi/sunxi_pwm.c | 6 +-
sys/arch/arm/sunxi/sunxi_resets.c | 12 +-
sys/arch/arm/sunxi/sunxi_rsb.c | 8 +-
sys/arch/arm/sunxi/sunxi_rtc.c | 8 +-
sys/arch/arm/sunxi/sunxi_sata.c | 12 +-
sys/arch/arm/sunxi/sunxi_sid.c | 8 +-
sys/arch/arm/sunxi/sunxi_sramc.c | 10 +-
sys/arch/arm/sunxi/sunxi_tcon.c | 8 +-
sys/arch/arm/sunxi/sunxi_thermal.c | 8 +-
sys/arch/arm/sunxi/sunxi_timer.c | 12 +-
sys/arch/arm/sunxi/sunxi_ts.c | 8 +-
sys/arch/arm/sunxi/sunxi_twi.c | 8 +-
sys/arch/arm/sunxi/sunxi_usb3phy.c | 8 +-
sys/arch/arm/sunxi/sunxi_usbphy.c | 8 +-
sys/arch/arm/sunxi/sunxi_wdt.c | 8 +-
sys/arch/arm/ti/am3_prcm.c | 32 ++++---
sys/arch/arm/ti/if_cpsw.c | 17 ++--
sys/arch/arm/ti/omap2_nand.c | 14 +-
sys/arch/arm/ti/omap3_cm.c | 12 +-
sys/arch/arm/ti/omap3_dss.c | 14 +-
sys/arch/arm/ti/omap3_prm.c | 12 +-
sys/arch/arm/ti/ti_com.c | 16 ++--
sys/arch/arm/ti/ti_cpufreq.c | 12 ++-
sys/arch/arm/ti/ti_div_clock.c | 12 +-
sys/arch/arm/ti/ti_dpll_clock.c | 10 +-
sys/arch/arm/ti/ti_edma.c | 12 +-
sys/arch/arm/ti/ti_ehci.c | 15 ++-
sys/arch/arm/ti/ti_gpio.c | 8 +-
sys/arch/arm/ti/ti_gpmc.c | 12 +-
sys/arch/arm/ti/ti_iic.c | 8 +-
sys/arch/arm/ti/ti_lcdc.c | 12 +-
sys/arch/arm/ti/ti_motg.c | 12 +-
sys/arch/arm/ti/ti_mux_clock.c | 12 ++-
sys/arch/arm/ti/ti_omapintc.c | 8 +-
sys/arch/arm/ti/ti_omaptimer.c | 8 +-
sys/arch/arm/ti/ti_otg.c | 12 +-
sys/arch/arm/ti/ti_rng.c | 12 +-
sys/arch/arm/ti/ti_sdhc.c | 8 +-
sys/arch/arm/ti/ti_sysc.c | 12 +-
sys/arch/arm/ti/ti_tptc.c | 12 +-
sys/arch/arm/ti/ti_usb.c | 12 +-
sys/arch/arm/ti/ti_usbtll.c | 12 +-
sys/arch/arm/ti/ti_wdt.c | 12 +-
sys/arch/arm/vexpress/vexpress_sysreg.c | 11 +-
sys/arch/arm/xilinx/zynq7000_sdhc.c | 12 +-
sys/arch/arm/xilinx/zynq7000_uart.c | 16 ++--
sys/arch/arm/xilinx/zynq7000_usb.c | 12 +-
sys/arch/arm/xilinx/zynq_cemac.c | 12 +-
sys/arch/mips/cavium/dev/octeon_cib.c | 6 +-
sys/arch/mips/cavium/dev/octeon_intc.c | 8 +-
sys/arch/mips/cavium/dev/octeon_pip.c | 20 ++--
sys/arch/mips/cavium/dev/octeon_smi.c | 12 +-
sys/arch/mips/cavium/dev/octeon_xhci.c | 10 +-
sys/arch/shark/ofw/chipsfb_ofbus.c | 19 ++--
sys/arch/shark/ofw/igsfb_ofbus.c | 17 ++--
sys/arch/shark/ofw/ofrom.c | 13 ++-
sys/arch/shark/ofw/vga_ofbus.c | 11 +-
sys/arch/shark/ofw/vlpci.c | 15 ++-
sys/dev/fdt/ahcisata_fdt.c | 14 +-
sys/dev/fdt/amdccp_fdt.c | 6 +-
sys/dev/fdt/arasan_sdhc_fdt.c | 18 ++-
sys/dev/fdt/ausoc.c | 11 +-
sys/dev/fdt/connector_fdt.c | 8 +-
sys/dev/fdt/cpufreq_dt.c | 12 ++-
sys/dev/fdt/dw_apb_uart.c | 14 +-
sys/dev/fdt/dwc2_fdt.c | 8 +-
sys/dev/fdt/dwc3_fdt.c | 39 +++++----
sys/dev/fdt/dwcmmc_fdt.c | 8 +-
sys/dev/fdt/dwcwdt_fdt.c | 12 +-
sys/dev/fdt/dwiic_fdt.c | 12 +-
sys/dev/fdt/ehci_fdt.c | 15 ++-
sys/dev/fdt/fdt_panel.c | 12 +-
sys/dev/fdt/fdtbus.c | 6 +-
sys/dev/fdt/fixedclock.c | 12 ++-
sys/dev/fdt/fixedfactorclock.c | 12 ++-
sys/dev/fdt/fixedregulator.c | 12 ++-
sys/dev/fdt/genet_fdt.c | 15 ++-
sys/dev/fdt/gpiokeys.c | 12 ++-
sys/dev/fdt/gpioleds.c | 12 ++-
sys/dev/fdt/gpioregulator.c | 12 ++-
sys/dev/fdt/hdmi_connector.c | 12 +-
sys/dev/fdt/i2cmux_fdt.c | 8 +-
sys/dev/fdt/mmc_pwrseq_emmc.c | 12 +-
sys/dev/fdt/mmc_pwrseq_simple.c | 12 +-
sys/dev/fdt/ns8250_uart.c | 12 +-
sys/dev/fdt/ohci_fdt.c | 15 ++-
sys/dev/fdt/panel_fdt.c | 8 +-
sys/dev/fdt/pinctrl_single.c | 8 +-
sys/dev/fdt/pl061gpio_fdt.c | 15 ++-
sys/dev/fdt/pwm_backlight.c | 12 +-
sys/dev/fdt/pwm_fan.c | 12 +-
sys/dev/fdt/pwmregulator.c | 12 +-
sys/dev/fdt/qemufwcfg_fdt.c | 12 +-
sys/dev/fdt/simple_amplifier.c | 12 +-
sys/dev/fdt/simplefb.c | 14 +-
sys/dev/fdt/spdif_tx.c | 12 +-
sys/dev/fdt/syscon.c | 14 +-
sys/dev/fdt/usbnopphy.c | 12 +-
sys/dev/fdt/virtio_mmio_fdt.c | 12 +-
sys/dev/fdt/vmt_fdt.c | 6 +-
sys/dev/i2c/twl4030.c | 8 +-
sys/dev/ofisa/atppc_ofisa.c | 6 +-
sys/dev/ofisa/com_ofisa.c | 6 +-
sys/dev/ofisa/ess_ofisa.c | 6 +-
sys/dev/ofisa/if_cs_ofisa.c | 6 +-
sys/dev/ofisa/joy_ofisa.c | 6 +-
sys/dev/ofisa/lpt_ofisa.c | 6 +-
sys/dev/ofisa/ofisa.c | 6 +-
sys/dev/ofisa/pckbc_ofisa.c | 8 +-
sys/dev/ofisa/sb_ofisa.c | 6 +-
sys/dev/ofisa/wdc_ofisa.c | 6 +-
sys/dev/ofw/ofw_subr.c | 14 +-
sys/dev/ofw/openfirm.h | 6 +-
sys/dev/sdmmc/if_bwfm_sdio.c | 10 +-
sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_netbsd_fdt.c | 12 ++-
330 files changed, 2152 insertions(+), 1895 deletions(-)
diffs (truncated from 13248 to 300 lines):
diff -r 8929cdf39b14 -r 1499b49cadff sys/arch/arm/altera/cycv_clkmgr.c
--- a/sys/arch/arm/altera/cycv_clkmgr.c Wed Jan 27 02:29:48 2021 +0000
+++ b/sys/arch/arm/altera/cycv_clkmgr.c Wed Jan 27 03:10:18 2021 +0000
@@ -1,9 +1,9 @@
-/* $NetBSD: cycv_clkmgr.c,v 1.7 2021/01/27 01:47:40 thorpej Exp $ */
+/* $NetBSD: cycv_clkmgr.c,v 1.8 2021/01/27 03:10:18 thorpej Exp $ */
/* This file is in the public domain. */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cycv_clkmgr.c,v 1.7 2021/01/27 01:47:40 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cycv_clkmgr.c,v 1.8 2021/01/27 03:10:18 thorpej Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -121,7 +121,7 @@
{
struct fdt_attach_args *faa = aux;
- return of_match_compat_data(faa->faa_phandle, compat_data);
+ return of_compatible_match(faa->faa_phandle, compat_data);
}
static void
@@ -239,7 +239,7 @@
clk->refcnt = 0;
const struct device_compatible_entry * const dce =
- of_search_compatible(handle, clock_types);
+ of_compatible_lookup(handle, clock_types);
if (dce == NULL)
goto err;
clk->type = dce->value;
diff -r 8929cdf39b14 -r 1499b49cadff sys/arch/arm/altera/cycv_dwcmmc.c
--- a/sys/arch/arm/altera/cycv_dwcmmc.c Wed Jan 27 02:29:48 2021 +0000
+++ b/sys/arch/arm/altera/cycv_dwcmmc.c Wed Jan 27 03:10:18 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cycv_dwcmmc.c,v 1.5 2020/03/20 06:23:51 skrll Exp $ */
+/* $NetBSD: cycv_dwcmmc.c,v 1.6 2021/01/27 03:10:18 thorpej Exp $ */
/*-
* Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cycv_dwcmmc.c,v 1.5 2020/03/20 06:23:51 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cycv_dwcmmc.c,v 1.6 2021/01/27 03:10:18 thorpej Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -63,9 +63,9 @@
CFATTACH_DECL_NEW(cycv_dwcmmc, sizeof(struct dwc_mmc_softc),
cycv_dwcmmc_match, cycv_dwcmmc_attach, NULL, NULL);
-static const char * const cycv_dwcmmc_compat[] = {
- "altr,socfpga-dw-mshc",
- NULL
+static const struct device_compatible_entry compat_data[] = {
+ { .compat = "altr,socfpga-dw-mshc" },
+ DEVICE_COMPAT_EOL
};
static int
@@ -73,7 +73,7 @@
{
struct fdt_attach_args * const faa = aux;
- return of_match_compatible(faa->faa_phandle, cycv_dwcmmc_compat);
+ return of_compatible_match(faa->faa_phandle, compat_data);
}
static void
diff -r 8929cdf39b14 -r 1499b49cadff sys/arch/arm/altera/cycv_gmac.c
--- a/sys/arch/arm/altera/cycv_gmac.c Wed Jan 27 02:29:48 2021 +0000
+++ b/sys/arch/arm/altera/cycv_gmac.c Wed Jan 27 03:10:18 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cycv_gmac.c,v 1.4 2019/07/21 08:24:32 mrg Exp $ */
+/* $NetBSD: cycv_gmac.c,v 1.5 2021/01/27 03:10:18 thorpej Exp $ */
/*-
* Copyright (c) 2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -30,7 +30,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cycv_gmac.c,v 1.4 2019/07/21 08:24:32 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cycv_gmac.c,v 1.5 2021/01/27 03:10:18 thorpej Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -51,7 +51,10 @@
#include <dev/fdt/fdtvar.h>
-static const char * compatible[] = { "altr,socfpga-stmmac", NULL };
+static const struct device_compatible_entry compat_data[] = {
+ { .compat = "altr,socfpga-stmmac" },
+ DEVICE_COMPAT_EOL
+};
static int
cycv_gmac_intr(void *arg)
@@ -64,7 +67,7 @@
{
struct fdt_attach_args * const faa = aux;
- return of_match_compatible(faa->faa_phandle, compatible);
+ return of_compatible_match(faa->faa_phandle, compat_data);
}
static void
diff -r 8929cdf39b14 -r 1499b49cadff sys/arch/arm/altera/cycv_rstmgr.c
--- a/sys/arch/arm/altera/cycv_rstmgr.c Wed Jan 27 02:29:48 2021 +0000
+++ b/sys/arch/arm/altera/cycv_rstmgr.c Wed Jan 27 03:10:18 2021 +0000
@@ -1,9 +1,9 @@
-/* $NetBSD: cycv_rstmgr.c,v 1.3 2019/10/18 06:50:08 skrll Exp $ */
+/* $NetBSD: cycv_rstmgr.c,v 1.4 2021/01/27 03:10:18 thorpej Exp $ */
/* This file is in the public domain. */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cycv_rstmgr.c,v 1.3 2019/10/18 06:50:08 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cycv_rstmgr.c,v 1.4 2021/01/27 03:10:18 thorpej Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -49,13 +49,17 @@
static struct cycv_rstmgr_softc *cycv_rstmgr_sc;
+static const struct device_compatible_entry compat_data[] = {
+ { .compat = "altr,rst-mgr" },
+ DEVICE_COMPAT_EOL
+};
+
static int
cycv_rstmgr_match(device_t parent, cfdata_t cf, void *aux)
{
- const char *compatible[] = { "altr,rst-mgr", NULL };
struct fdt_attach_args *faa = aux;
- return of_match_compatible(faa->faa_phandle, compatible);
+ return of_compatible_match(faa->faa_phandle, compat_data);
}
static void
diff -r 8929cdf39b14 -r 1499b49cadff sys/arch/arm/amlogic/meson6_timer.c
--- a/sys/arch/arm/amlogic/meson6_timer.c Wed Jan 27 02:29:48 2021 +0000
+++ b/sys/arch/arm/amlogic/meson6_timer.c Wed Jan 27 03:10:18 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: meson6_timer.c,v 1.1 2019/08/14 15:08:53 skrll Exp $ */
+/* $NetBSD: meson6_timer.c,v 1.2 2021/01/27 03:10:18 thorpej Exp $ */
/*-
* Copyright (c) 2019 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: meson6_timer.c,v 1.1 2019/08/14 15:08:53 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: meson6_timer.c,v 1.2 2021/01/27 03:10:18 thorpej Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -97,17 +97,17 @@
return TIMER_READ(sc, MESON_TIMERE);
}
+static const struct device_compatible_entry compat_data[] = {
+ { .compat = "amlogic,meson6-timer" },
+ DEVICE_COMPAT_EOL
+};
static int
meson6_timer_match(device_t parent, cfdata_t cf, void *aux)
{
- const char * const compatible[] = {
- "amlogic,meson6-timer",
- NULL
- };
struct fdt_attach_args * const faa = aux;
- return of_match_compatible(faa->faa_phandle, compatible);
+ return of_compatible_match(faa->faa_phandle, compat_data);
}
static void
diff -r 8929cdf39b14 -r 1499b49cadff sys/arch/arm/amlogic/meson8b_clkc.c
--- a/sys/arch/arm/amlogic/meson8b_clkc.c Wed Jan 27 02:29:48 2021 +0000
+++ b/sys/arch/arm/amlogic/meson8b_clkc.c Wed Jan 27 03:10:18 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: meson8b_clkc.c,v 1.5 2019/08/16 10:36:06 jmcneill Exp $ */
+/* $NetBSD: meson8b_clkc.c,v 1.6 2021/01/27 03:10:18 thorpej Exp $ */
/*-
* Copyright (c) 2019 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -28,7 +28,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: meson8b_clkc.c,v 1.5 2019/08/16 10:36:06 jmcneill Exp $");
+__KERNEL_RCSID(1, "$NetBSD: meson8b_clkc.c,v 1.6 2021/01/27 03:10:18 thorpej Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -73,10 +73,10 @@
static int meson8b_clkc_match(device_t, cfdata_t, void *);
static void meson8b_clkc_attach(device_t, device_t, void *);
-static const char * const compatible[] = {
- "amlogic,meson8-clkc",
- "amlogic,meson8b-clkc",
- NULL
+static const struct device_compatible_entry compat_data[] = {
+ { .compat = "amlogic,meson8-clkc" },
+ { .compat = "amlogic,meson8b-clkc" },
+ DEVICE_COMPAT_EOL
};
CFATTACH_DECL_NEW(meson8b_clkc, sizeof(struct meson_clk_softc),
@@ -326,7 +326,7 @@
{
struct fdt_attach_args * const faa = aux;
- return of_match_compatible(faa->faa_phandle, compatible);
+ return of_compatible_match(faa->faa_phandle, compat_data);
}
static void
diff -r 8929cdf39b14 -r 1499b49cadff sys/arch/arm/amlogic/meson_dwmac.c
--- a/sys/arch/arm/amlogic/meson_dwmac.c Wed Jan 27 02:29:48 2021 +0000
+++ b/sys/arch/arm/amlogic/meson_dwmac.c Wed Jan 27 03:10:18 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: meson_dwmac.c,v 1.10 2021/01/15 18:42:40 ryo Exp $ */
+/* $NetBSD: meson_dwmac.c,v 1.11 2021/01/27 03:10:18 thorpej Exp $ */
/*-
* Copyright (c) 2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -28,7 +28,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: meson_dwmac.c,v 1.10 2021/01/15 18:42:40 ryo Exp $");
+__KERNEL_RCSID(0, "$NetBSD: meson_dwmac.c,v 1.11 2021/01/27 03:10:18 thorpej Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -57,12 +57,12 @@
#define TX_CLK_DELAY __BITS(6,5)
#define PHY_INTERFACE_SEL __BIT(0)
-static const char * compatible[] = {
- "amlogic,meson8b-dwmac",
- "amlogic,meson-gx-dwmac",
- "amlogic,meson-gxbb-dwmac",
- "amlogic,meson-axg-dwmac",
- NULL
+static const struct device_compatible_entry compat_data[] = {
+ { .compat = "amlogic,meson8b-dwmac" },
+ { .compat = "amlogic,meson-gx-dwmac" },
+ { .compat = "amlogic,meson-gxbb-dwmac" },
+ { .compat = "amlogic,meson-axg-dwmac" },
+ DEVICE_COMPAT_EOL
};
static int
@@ -146,7 +146,7 @@
{
struct fdt_attach_args * const faa = aux;
- return of_match_compatible(faa->faa_phandle, compatible);
+ return of_compatible_match(faa->faa_phandle, compat_data);
}
static void
diff -r 8929cdf39b14 -r 1499b49cadff sys/arch/arm/amlogic/meson_genfb.c
--- a/sys/arch/arm/amlogic/meson_genfb.c Wed Jan 27 02:29:48 2021 +0000
+++ b/sys/arch/arm/amlogic/meson_genfb.c Wed Jan 27 03:10:18 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: meson_genfb.c,v 1.1 2019/01/19 21:43:43 jmcneill Exp $ */
+/* $NetBSD: meson_genfb.c,v 1.2 2021/01/27 03:10:18 thorpej Exp $ */
/*-
* Copyright (c) 2015-2019 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -33,7 +33,7 @@
#include "opt_wsdisplay_compat.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: meson_genfb.c,v 1.1 2019/01/19 21:43:43 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: meson_genfb.c,v 1.2 2021/01/27 03:10:18 thorpej Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -52,9 +52,9 @@
#include <dev/wsfb/genfbvar.h>
-static const char * const compatible[] = {
- "amlogic,meson8b-fb",
Home |
Main Index |
Thread Index |
Old Index