From 9fdf0c627b1fec102f212f847a6f7676c1829e65 Mon Sep 17 00:00:00 2001 From: mpi Date: Sun, 24 Oct 2021 17:52:26 +0000 Subject: [PATCH] Constify struct cfattach. ok visa@ a long time ago, ok patrick@ --- sys/arch/arm64/arm64/acpi_machdep.c | 4 ++-- sys/arch/arm64/arm64/cpu.c | 4 ++-- sys/arch/arm64/dev/acpipci.c | 4 ++-- sys/arch/arm64/dev/agintc.c | 6 +++--- sys/arch/arm64/dev/agtimer.c | 4 ++-- sys/arch/arm64/dev/ampintc.c | 6 +++--- sys/arch/arm64/dev/apm.c | 4 ++-- sys/arch/arm64/dev/bcm2836_intr.c | 4 ++-- sys/arch/arm64/dev/efi.c | 4 ++-- sys/arch/arm64/dev/mainbus.c | 4 ++-- sys/arch/arm64/dev/simplebus.c | 4 ++-- sys/arch/arm64/dev/smbios.c | 4 ++-- sys/arch/armv7/broadcom/bcm2836_intr.c | 4 ++-- sys/arch/armv7/exynos/crosec.c | 4 ++-- sys/arch/armv7/exynos/exclock.c | 4 ++-- sys/arch/armv7/exynos/exdisplay.c | 6 +++--- sys/arch/armv7/exynos/exdog.c | 4 ++-- sys/arch/armv7/exynos/exdwusb.c | 4 ++-- sys/arch/armv7/exynos/exehci.c | 4 ++-- sys/arch/armv7/exynos/exgpio.c | 4 ++-- sys/arch/armv7/exynos/exiic.c | 2 +- sys/arch/armv7/exynos/exmct.c | 4 ++-- sys/arch/armv7/exynos/expower.c | 4 ++-- sys/arch/armv7/exynos/tps65090.c | 4 ++-- sys/arch/armv7/imx/imxahci.c | 4 ++-- sys/arch/armv7/imx/imxtemp.c | 4 ++-- sys/arch/armv7/marvell/mvacc.c | 4 ++-- sys/arch/armv7/marvell/mvagc.c | 4 ++-- sys/arch/armv7/marvell/mvahci.c | 4 ++-- sys/arch/armv7/marvell/mvmbus.c | 4 ++-- sys/arch/armv7/marvell/mvmpic.c | 4 ++-- sys/arch/armv7/marvell/mvpcie.c | 4 ++-- sys/arch/armv7/marvell/mvpxa.c | 4 ++-- sys/arch/armv7/marvell/mvsysctrl.c | 4 ++-- sys/arch/armv7/marvell/mvxhci.c | 4 ++-- sys/arch/armv7/omap/amdisplay.c | 4 ++-- sys/arch/armv7/omap/dmtimer.c | 4 ++-- sys/arch/armv7/omap/edma.c | 4 ++-- sys/arch/armv7/omap/gptimer.c | 4 ++-- sys/arch/armv7/omap/if_cpsw.c | 4 ++-- sys/arch/armv7/omap/intc.c | 4 ++-- sys/arch/armv7/omap/nxphdmi.c | 4 ++-- sys/arch/armv7/omap/omap.c | 4 ++-- sys/arch/armv7/omap/omapid.c | 4 ++-- sys/arch/armv7/omap/omdisplay.c | 4 ++-- sys/arch/armv7/omap/omdog.c | 4 ++-- sys/arch/armv7/omap/omehci.c | 4 ++-- sys/arch/armv7/omap/omgpio.c | 4 ++-- sys/arch/armv7/omap/ommmc.c | 4 ++-- sys/arch/armv7/omap/omohci.c | 4 ++-- sys/arch/armv7/omap/omusbtll.c | 4 ++-- sys/arch/armv7/omap/omwugen.c | 4 ++-- sys/arch/armv7/omap/prcm.c | 4 ++-- sys/arch/armv7/omap/ti_iic.c | 4 ++-- sys/arch/armv7/sunxi/sxiahci.c | 4 ++-- sys/arch/armv7/sunxi/sxie.c | 4 ++-- sys/arch/armv7/sunxi/sxiintc.c | 4 ++-- sys/arch/armv7/sunxi/sxitimer.c | 4 ++-- sys/arch/armv7/vexpress/pciecam.c | 4 ++-- sys/arch/armv7/vexpress/sysreg.c | 4 ++-- sys/dev/fdt/acrtc.c | 4 ++-- sys/dev/fdt/ahci_fdt.c | 4 ++-- sys/dev/fdt/amlclock.c | 4 ++-- sys/dev/fdt/amldwusb.c | 4 ++-- sys/dev/fdt/amliic.c | 4 ++-- sys/dev/fdt/amlmmc.c | 4 ++-- sys/dev/fdt/amlpciephy.c | 4 ++-- sys/dev/fdt/amlpinctrl.c | 4 ++-- sys/dev/fdt/amlpwm.c | 4 ++-- sys/dev/fdt/amlreset.c | 4 ++-- sys/dev/fdt/amlrng.c | 4 ++-- sys/dev/fdt/amlsm.c | 4 ++-- sys/dev/fdt/amltemp.c | 4 ++-- sys/dev/fdt/amluart.c | 4 ++-- sys/dev/fdt/amlusbphy.c | 4 ++-- sys/dev/fdt/axppmic.c | 6 +++--- sys/dev/fdt/bcm2835_aux.c | 4 ++-- sys/dev/fdt/bcm2835_dog.c | 4 ++-- sys/dev/fdt/bcm2835_rng.c | 4 ++-- sys/dev/fdt/bcm2835_temp.c | 4 ++-- sys/dev/fdt/ccp_fdt.c | 4 ++-- sys/dev/fdt/com_fdt.c | 4 ++-- sys/dev/fdt/dwdog.c | 4 ++-- sys/dev/fdt/dwmmc.c | 4 ++-- sys/dev/fdt/dwpcie.c | 4 ++-- sys/dev/fdt/ehci_fdt.c | 4 ++-- sys/dev/fdt/exrtc.c | 4 ++-- sys/dev/fdt/fanpwr.c | 4 ++-- sys/dev/fdt/fusbtc.c | 4 ++-- sys/dev/fdt/hiclock.c | 4 ++-- sys/dev/fdt/hidwusb.c | 4 ++-- sys/dev/fdt/hireset.c | 4 ++-- sys/dev/fdt/hitemp.c | 4 ++-- sys/dev/fdt/if_dwge.c | 4 ++-- sys/dev/fdt/if_dwxe.c | 4 ++-- sys/dev/fdt/if_fec.c | 4 ++-- sys/dev/fdt/if_mvneta.c | 4 ++-- sys/dev/fdt/imxanatop.c | 4 ++-- sys/dev/fdt/imxccm.c | 4 ++-- sys/dev/fdt/imxesdhc.c | 4 ++-- sys/dev/fdt/imxgpc.c | 4 ++-- sys/dev/fdt/imxgpio.c | 4 ++-- sys/dev/fdt/imxiomuxc.c | 4 ++-- sys/dev/fdt/imxrtc.c | 4 ++-- sys/dev/fdt/imxspi.c | 4 ++-- sys/dev/fdt/imxsrc.c | 4 ++-- sys/dev/fdt/imxtmu.c | 4 ++-- sys/dev/fdt/imxuart.c | 4 ++-- sys/dev/fdt/moxtet.c | 4 ++-- sys/dev/fdt/mvclock.c | 4 ++-- sys/dev/fdt/mvdog.c | 4 ++-- sys/dev/fdt/mvgicp.c | 4 ++-- sys/dev/fdt/mvgpio.c | 4 ++-- sys/dev/fdt/mvicu.c | 4 ++-- sys/dev/fdt/mviic.c | 4 ++-- sys/dev/fdt/mvmdio.c | 4 ++-- sys/dev/fdt/mvpinctrl.c | 4 ++-- sys/dev/fdt/mvrng.c | 4 ++-- sys/dev/fdt/mvrtc.c | 4 ++-- sys/dev/fdt/mvspi.c | 4 ++-- sys/dev/fdt/mvtemp.c | 4 ++-- sys/dev/fdt/mvuart.c | 4 ++-- sys/dev/fdt/ohci_fdt.c | 4 ++-- sys/dev/fdt/pinctrl.c | 4 ++-- sys/dev/fdt/plgpio.c | 4 ++-- sys/dev/fdt/plrtc.c | 4 ++-- sys/dev/fdt/pluart_fdt.c | 4 ++-- sys/dev/fdt/psci.c | 4 ++-- sys/dev/fdt/pwmbl.c | 4 ++-- sys/dev/fdt/pwmfan.c | 4 ++-- sys/dev/fdt/pwmreg.c | 4 ++-- sys/dev/fdt/rkclock.c | 4 ++-- sys/dev/fdt/rkdwusb.c | 4 ++-- sys/dev/fdt/rkemmcphy.c | 4 ++-- sys/dev/fdt/rkgpio.c | 4 ++-- sys/dev/fdt/rkgrf.c | 4 ++-- sys/dev/fdt/rkiic.c | 4 ++-- sys/dev/fdt/rkpcie.c | 4 ++-- sys/dev/fdt/rkpinctrl.c | 4 ++-- sys/dev/fdt/rkpmic.c | 4 ++-- sys/dev/fdt/rkpwm.c | 4 ++-- sys/dev/fdt/rktemp.c | 4 ++-- sys/dev/fdt/sdhc_fdt.c | 4 ++-- sys/dev/fdt/sfp.c | 4 ++-- sys/dev/fdt/simplefb.c | 4 ++-- sys/dev/fdt/simplepanel.c | 4 ++-- sys/dev/fdt/ssdfb.c | 6 +++--- sys/dev/fdt/sxiccmu.c | 4 ++-- sys/dev/fdt/sxidog.c | 4 ++-- sys/dev/fdt/sximmc.c | 4 ++-- sys/dev/fdt/sxipio.c | 4 ++-- sys/dev/fdt/sxipwm.c | 4 ++-- sys/dev/fdt/sxirsb.c | 4 ++-- sys/dev/fdt/sxirtc.c | 4 ++-- sys/dev/fdt/sxisid.c | 4 ++-- sys/dev/fdt/sxisyscon.c | 4 ++-- sys/dev/fdt/sxitemp.c | 4 ++-- sys/dev/fdt/sxits.c | 4 ++-- sys/dev/fdt/sxitwi.c | 4 ++-- sys/dev/fdt/sypwr.c | 4 ++-- sys/dev/fdt/syscon.c | 4 ++-- sys/dev/fdt/virtio_mmio.c | 6 +++--- sys/dev/fdt/xhci_fdt.c | 4 ++-- 163 files changed, 331 insertions(+), 331 deletions(-) diff --git a/sys/arch/arm64/arm64/acpi_machdep.c b/sys/arch/arm64/arm64/acpi_machdep.c index 7b9bb1105f1..9fb20a2376e 100644 --- a/sys/arch/arm64/arm64/acpi_machdep.c +++ b/sys/arch/arm64/arm64/acpi_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpi_machdep.c,v 1.15 2021/05/17 17:25:13 kettenis Exp $ */ +/* $OpenBSD: acpi_machdep.c,v 1.16 2021/10/24 17:52:28 mpi Exp $ */ /* * Copyright (c) 2018 Mark Kettenis * @@ -40,7 +40,7 @@ int acpi_fdt_match(struct device *, void *, void *); void acpi_fdt_attach(struct device *, struct device *, void *); void acpi_attach(struct device *, struct device *, void *); -struct cfattach acpi_fdt_ca = { +const struct cfattach acpi_fdt_ca = { sizeof(struct acpi_softc), acpi_fdt_match, acpi_fdt_attach }; diff --git a/sys/arch/arm64/arm64/cpu.c b/sys/arch/arm64/arm64/cpu.c index 094e9db3214..8d1618419a7 100644 --- a/sys/arch/arm64/arm64/cpu.c +++ b/sys/arch/arm64/arm64/cpu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.c,v 1.55 2021/06/10 04:49:48 jsg Exp $ */ +/* $OpenBSD: cpu.c,v 1.56 2021/10/24 17:52:28 mpi Exp $ */ /* * Copyright (c) 2016 Dale Rahn @@ -170,7 +170,7 @@ struct cpu_info *cpu_info_list = &cpu_info_primary; int cpu_match(struct device *, void *, void *); void cpu_attach(struct device *, struct device *, void *); -struct cfattach cpu_ca = { +const struct cfattach cpu_ca = { sizeof(struct device), cpu_match, cpu_attach }; diff --git a/sys/arch/arm64/dev/acpipci.c b/sys/arch/arm64/dev/acpipci.c index 52b8940a11e..28d35d09c87 100644 --- a/sys/arch/arm64/dev/acpipci.c +++ b/sys/arch/arm64/dev/acpipci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpipci.c,v 1.32 2021/10/10 21:54:50 kettenis Exp $ */ +/* $OpenBSD: acpipci.c,v 1.33 2021/10/24 17:52:28 mpi Exp $ */ /* * Copyright (c) 2018 Mark Kettenis * @@ -90,7 +90,7 @@ struct acpipci_intr_handle { int acpipci_match(struct device *, void *, void *); void acpipci_attach(struct device *, struct device *, void *); -struct cfattach acpipci_ca = { +const struct cfattach acpipci_ca = { sizeof(struct acpipci_softc), acpipci_match, acpipci_attach }; diff --git a/sys/arch/arm64/dev/agintc.c b/sys/arch/arm64/dev/agintc.c index 80250bd93cf..9c96c4636e9 100644 --- a/sys/arch/arm64/dev/agintc.c +++ b/sys/arch/arm64/dev/agintc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: agintc.c,v 1.34 2021/10/21 22:25:03 patrick Exp $ */ +/* $OpenBSD: agintc.c,v 1.35 2021/10/24 17:52:28 mpi Exp $ */ /* * Copyright (c) 2007, 2009, 2011, 2017 Dale Rahn * Copyright (c) 2018 Mark Kettenis @@ -238,7 +238,7 @@ int agintc_ipi_nop(void *v); int agintc_ipi_combined(void *); void agintc_send_ipi(struct cpu_info *, int); -struct cfattach agintc_ca = { +const struct cfattach agintc_ca = { sizeof (struct agintc_softc), agintc_match, agintc_attach }; @@ -1311,7 +1311,7 @@ struct agintc_msi_softc { struct interrupt_controller sc_ic; }; -struct cfattach agintcmsi_ca = { +const struct cfattach agintcmsi_ca = { sizeof (struct agintc_msi_softc), agintc_msi_match, agintc_msi_attach }; diff --git a/sys/arch/arm64/dev/agtimer.c b/sys/arch/arm64/dev/agtimer.c index 633a62c2f19..ea0c18a5191 100644 --- a/sys/arch/arm64/dev/agtimer.c +++ b/sys/arch/arm64/dev/agtimer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: agtimer.c,v 1.18 2021/03/11 11:16:56 jsg Exp $ */ +/* $OpenBSD: agtimer.c,v 1.19 2021/10/24 17:52:28 mpi Exp $ */ /* * Copyright (c) 2011 Dale Rahn * Copyright (c) 2013 Patrick Wildt @@ -88,7 +88,7 @@ void agtimer_setstatclockrate(int stathz); void agtimer_set_clockrate(int32_t new_frequency); void agtimer_startclock(void); -struct cfattach agtimer_ca = { +const struct cfattach agtimer_ca = { sizeof (struct agtimer_softc), agtimer_match, agtimer_attach }; diff --git a/sys/arch/arm64/dev/ampintc.c b/sys/arch/arm64/dev/ampintc.c index 64bf84fe6d9..03a794902a9 100644 --- a/sys/arch/arm64/dev/ampintc.c +++ b/sys/arch/arm64/dev/ampintc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ampintc.c,v 1.25 2021/10/24 14:54:52 patrick Exp $ */ +/* $OpenBSD: ampintc.c,v 1.26 2021/10/24 17:52:28 mpi Exp $ */ /* * Copyright (c) 2007,2009,2011 Dale Rahn * @@ -199,7 +199,7 @@ int ampintc_ipi_nop(void *); int ampintc_ipi_ddb(void *); void ampintc_send_ipi(struct cpu_info *, int); -struct cfattach ampintc_ca = { +const struct cfattach ampintc_ca = { sizeof (struct ampintc_softc), ampintc_match, ampintc_attach }; @@ -868,7 +868,7 @@ struct ampintc_msi_softc { struct interrupt_controller sc_ic; }; -struct cfattach ampintcmsi_ca = { +const struct cfattach ampintcmsi_ca = { sizeof (struct ampintc_msi_softc), ampintc_msi_match, ampintc_msi_attach }; diff --git a/sys/arch/arm64/dev/apm.c b/sys/arch/arm64/dev/apm.c index cc7e3ccb78b..d79b3b1740b 100644 --- a/sys/arch/arm64/dev/apm.c +++ b/sys/arch/arm64/dev/apm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: apm.c,v 1.7 2021/03/26 22:55:48 kn Exp $ */ +/* $OpenBSD: apm.c,v 1.8 2021/10/24 17:52:28 mpi Exp $ */ /*- * Copyright (c) 2001 Alexander Guy. All rights reserved. @@ -68,7 +68,7 @@ struct apm_softc { int apmmatch(struct device *, void *, void *); void apmattach(struct device *, struct device *, void *); -struct cfattach apm_ca = { +const struct cfattach apm_ca = { sizeof(struct apm_softc), apmmatch, apmattach }; diff --git a/sys/arch/arm64/dev/bcm2836_intr.c b/sys/arch/arm64/dev/bcm2836_intr.c index 164fe7156a8..6196b55cd9c 100644 --- a/sys/arch/arm64/dev/bcm2836_intr.c +++ b/sys/arch/arm64/dev/bcm2836_intr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bcm2836_intr.c,v 1.12 2021/07/02 19:55:00 kettenis Exp $ */ +/* $OpenBSD: bcm2836_intr.c,v 1.13 2021/10/24 17:52:28 mpi Exp $ */ /* * Copyright (c) 2007,2009 Dale Rahn * Copyright (c) 2015 Patrick Wildt @@ -126,7 +126,7 @@ void bcm_intc_intr_route(void *, int , struct cpu_info *); void bcm_intc_handle_ipi(void); void bcm_intc_send_ipi(struct cpu_info *, int); -struct cfattach bcmintc_ca = { +const struct cfattach bcmintc_ca = { sizeof (struct bcm_intc_softc), bcm_intc_match, bcm_intc_attach }; diff --git a/sys/arch/arm64/dev/efi.c b/sys/arch/arm64/dev/efi.c index e9809d9eb68..078ab74a163 100644 --- a/sys/arch/arm64/dev/efi.c +++ b/sys/arch/arm64/dev/efi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: efi.c,v 1.10 2021/05/15 11:30:27 kettenis Exp $ */ +/* $OpenBSD: efi.c,v 1.11 2021/10/24 17:52:28 mpi Exp $ */ /* * Copyright (c) 2017 Mark Kettenis @@ -57,7 +57,7 @@ struct efi_softc { int efi_match(struct device *, void *, void *); void efi_attach(struct device *, struct device *, void *); -struct cfattach efi_ca = { +const struct cfattach efi_ca = { sizeof(struct efi_softc), efi_match, efi_attach }; diff --git a/sys/arch/arm64/dev/mainbus.c b/sys/arch/arm64/dev/mainbus.c index 0a28bb76cb6..ccadc1ba840 100644 --- a/sys/arch/arm64/dev/mainbus.c +++ b/sys/arch/arm64/dev/mainbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mainbus.c,v 1.21 2021/05/05 14:13:57 kettenis Exp $ */ +/* $OpenBSD: mainbus.c,v 1.22 2021/10/24 17:52:28 mpi Exp $ */ /* * Copyright (c) 2016 Patrick Wildt * Copyright (c) 2017 Mark Kettenis @@ -57,7 +57,7 @@ struct mainbus_softc { int sc_early_nodes[64]; }; -struct cfattach mainbus_ca = { +const struct cfattach mainbus_ca = { sizeof(struct mainbus_softc), mainbus_match, mainbus_attach, NULL, config_activate_children }; diff --git a/sys/arch/arm64/dev/simplebus.c b/sys/arch/arm64/dev/simplebus.c index 5ff303dcd72..93a86944a96 100644 --- a/sys/arch/arm64/dev/simplebus.c +++ b/sys/arch/arm64/dev/simplebus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: simplebus.c,v 1.13 2021/02/28 21:10:22 patrick Exp $ */ +/* $OpenBSD: simplebus.c,v 1.14 2021/10/24 17:52:28 mpi Exp $ */ /* * Copyright (c) 2016 Patrick Wildt * @@ -39,7 +39,7 @@ paddr_t simplebus_bs_mmap(bus_space_tag_t, bus_addr_t, off_t, int, int); int simplebus_dmamap_load_buffer(bus_dma_tag_t, bus_dmamap_t, void *, bus_size_t, struct proc *, int, paddr_t *, int *, int); -struct cfattach simplebus_ca = { +const struct cfattach simplebus_ca = { sizeof(struct simplebus_softc), simplebus_match, simplebus_attach }; diff --git a/sys/arch/arm64/dev/smbios.c b/sys/arch/arm64/dev/smbios.c index 09b1725578f..e5d78d74445 100644 --- a/sys/arch/arm64/dev/smbios.c +++ b/sys/arch/arm64/dev/smbios.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smbios.c,v 1.6 2020/08/26 03:29:05 visa Exp $ */ +/* $OpenBSD: smbios.c,v 1.7 2021/10/24 17:52:28 mpi Exp $ */ /* * Copyright (c) 2006 Gordon Willem Klok * Copyright (c) 2019 Mark Kettenis @@ -52,7 +52,7 @@ struct smbios_softc { int smbios_match(struct device *, void *, void *); void smbios_attach(struct device *, struct device *, void *); -struct cfattach smbios_ca = { +const struct cfattach smbios_ca = { sizeof(struct device), smbios_match, smbios_attach }; diff --git a/sys/arch/armv7/broadcom/bcm2836_intr.c b/sys/arch/armv7/broadcom/bcm2836_intr.c index f5f2b7ea19c..c2d3ea8e733 100644 --- a/sys/arch/armv7/broadcom/bcm2836_intr.c +++ b/sys/arch/armv7/broadcom/bcm2836_intr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bcm2836_intr.c,v 1.6 2021/05/16 15:10:19 deraadt Exp $ */ +/* $OpenBSD: bcm2836_intr.c,v 1.7 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2007,2009 Dale Rahn * Copyright (c) 2015 Patrick Wildt @@ -120,7 +120,7 @@ void bcm_intc_intr_disestablish(void *); const char *bcm_intc_intr_string(void *); void bcm_intc_irq_handler(void *); -struct cfattach bcmintc_ca = { +const struct cfattach bcmintc_ca = { sizeof (struct bcm_intc_softc), bcm_intc_match, bcm_intc_attach }; diff --git a/sys/arch/armv7/exynos/crosec.c b/sys/arch/armv7/exynos/crosec.c index 60acb04a37a..4bd2b04821a 100644 --- a/sys/arch/armv7/exynos/crosec.c +++ b/sys/arch/armv7/exynos/crosec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crosec.c,v 1.4 2021/03/25 04:12:01 jsg Exp $ */ +/* $OpenBSD: crosec.c,v 1.5 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2013 Patrick Wildt * @@ -40,7 +40,7 @@ int cros_ec_i2c_command(struct cros_ec_softc *, uint8_t, int, const uint8_t *, int, uint8_t **, int); int cros_ec_calc_checksum(const uint8_t *, int); -struct cfattach crosec_ca = { +const struct cfattach crosec_ca = { sizeof(struct cros_ec_softc), cros_ec_match, cros_ec_attach }; diff --git a/sys/arch/armv7/exynos/exclock.c b/sys/arch/armv7/exynos/exclock.c index 165e89cf8fe..1e337cbd791 100644 --- a/sys/arch/armv7/exynos/exclock.c +++ b/sys/arch/armv7/exynos/exclock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exclock.c,v 1.9 2021/03/25 04:12:01 jsg Exp $ */ +/* $OpenBSD: exclock.c,v 1.10 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2012-2013 Patrick Wildt * @@ -95,7 +95,7 @@ uint32_t exclock_get_armclk(struct exclock_softc *); uint32_t exclock_get_kfcclk(struct exclock_softc *); unsigned int exclock_get_i2cclk(void); -struct cfattach exclock_ca = { +const struct cfattach exclock_ca = { sizeof (struct exclock_softc), exclock_match, exclock_attach }; diff --git a/sys/arch/armv7/exynos/exdisplay.c b/sys/arch/armv7/exynos/exdisplay.c index 3bc2f84dc7f..ae52cdacfc4 100644 --- a/sys/arch/armv7/exynos/exdisplay.c +++ b/sys/arch/armv7/exynos/exdisplay.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exdisplay.c,v 1.6 2020/05/25 09:55:48 jsg Exp $ */ +/* $OpenBSD: exdisplay.c,v 1.7 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2013 Patrick Wildt * @@ -52,10 +52,10 @@ void exdisplay_attach(struct device *parent, struct device *self, void *args); int exdisplay_cnattach(bus_space_tag_t iot, bus_addr_t iobase, size_t size); void exdisplay_setup_rasops(struct rasops_info *rinfo, struct wsscreen_descr *descr); -struct cfattach exdisplay_ca = { +const struct cfattach exdisplay_ca = { sizeof (struct exdisplay_softc), NULL, exdisplay_attach }; -struct cfattach exdisplay_fdt_ca = { +const struct cfattach exdisplay_fdt_ca = { sizeof (struct exdisplay_softc), exdisplay_match, exdisplay_attach }; diff --git a/sys/arch/armv7/exynos/exdog.c b/sys/arch/armv7/exynos/exdog.c index 271488362c3..e76ae1a9c04 100644 --- a/sys/arch/armv7/exynos/exdog.c +++ b/sys/arch/armv7/exynos/exdog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exdog.c,v 1.7 2021/03/25 04:12:01 jsg Exp $ */ +/* $OpenBSD: exdog.c,v 1.8 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2012-2013 Patrick Wildt * @@ -56,7 +56,7 @@ void exdog_attach(struct device *parent, struct device *self, void *args); void exdog_stop(void); void exdog_reset(void); -struct cfattach exdog_ca = { +const struct cfattach exdog_ca = { sizeof (struct exdog_softc), exdog_match, exdog_attach }; diff --git a/sys/arch/armv7/exynos/exdwusb.c b/sys/arch/armv7/exynos/exdwusb.c index 7a6ab734b92..b6100255525 100644 --- a/sys/arch/armv7/exynos/exdwusb.c +++ b/sys/arch/armv7/exynos/exdwusb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exdwusb.c,v 1.4 2021/03/25 04:12:01 jsg Exp $ */ +/* $OpenBSD: exdwusb.c,v 1.5 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2017 Mark Kettenis * @@ -33,7 +33,7 @@ struct exdwusb_softc { int exdwusb_match(struct device *, void *, void *); void exdwusb_attach(struct device *, struct device *, void *); -struct cfattach exdwusb_ca = { +const struct cfattach exdwusb_ca = { sizeof(struct exdwusb_softc), exdwusb_match, exdwusb_attach }; diff --git a/sys/arch/armv7/exynos/exehci.c b/sys/arch/armv7/exynos/exehci.c index 8a72e329e22..32a18118657 100644 --- a/sys/arch/armv7/exynos/exehci.c +++ b/sys/arch/armv7/exynos/exehci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exehci.c,v 1.10 2021/03/25 04:12:01 jsg Exp $ */ +/* $OpenBSD: exehci.c,v 1.11 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2012-2013 Patrick Wildt * @@ -88,7 +88,7 @@ struct exehci_softc { bus_space_handle_t ph_ioh; }; -struct cfattach exehci_ca = { +const struct cfattach exehci_ca = { sizeof (struct exehci_softc), exehci_match, exehci_attach, exehci_detach }; diff --git a/sys/arch/armv7/exynos/exgpio.c b/sys/arch/armv7/exynos/exgpio.c index 7f5cd2453f4..678e76f6e81 100644 --- a/sys/arch/armv7/exynos/exgpio.c +++ b/sys/arch/armv7/exynos/exgpio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exgpio.c,v 1.7 2021/03/25 04:12:01 jsg Exp $ */ +/* $OpenBSD: exgpio.c,v 1.8 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2007,2009 Dale Rahn * Copyright (c) 2012-2013 Patrick Wildt @@ -67,7 +67,7 @@ struct exgpio_softc { int exgpio_match(struct device *, void *, void *); void exgpio_attach(struct device *, struct device *, void *); -struct cfattach exgpio_ca = { +const struct cfattach exgpio_ca = { sizeof (struct exgpio_softc), exgpio_match, exgpio_attach }; diff --git a/sys/arch/armv7/exynos/exiic.c b/sys/arch/armv7/exynos/exiic.c index 0a1ea26216f..fae1ee1a45e 100644 --- a/sys/arch/armv7/exynos/exiic.c +++ b/sys/arch/armv7/exynos/exiic.c @@ -101,7 +101,7 @@ int exiic_i2c_exec(void *, i2c_op_t, i2c_addr_t, const void *, size_t, HWRITE4((sc), (reg), HREAD4((sc), (reg)) & ~(bits)) -struct cfattach exiic_ca = { +const struct cfattach exiic_ca = { sizeof(struct exiic_softc), exiic_match, exiic_attach, exiic_detach }; diff --git a/sys/arch/armv7/exynos/exmct.c b/sys/arch/armv7/exynos/exmct.c index 5706908750e..ec30381b806 100644 --- a/sys/arch/armv7/exynos/exmct.c +++ b/sys/arch/armv7/exynos/exmct.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exmct.c,v 1.5 2017/03/04 18:17:24 kettenis Exp $ */ +/* $OpenBSD: exmct.c,v 1.6 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2012-2013 Patrick Wildt * @@ -48,7 +48,7 @@ void exmct_attach(struct device *, struct device *, void *); void exmct_stop(void); void exmct_reset(void); -struct cfattach exmct_ca = { +const struct cfattach exmct_ca = { sizeof (struct exmct_softc), exmct_match, exmct_attach }; diff --git a/sys/arch/armv7/exynos/expower.c b/sys/arch/armv7/exynos/expower.c index c57cfc7edf6..50a91c84cb7 100644 --- a/sys/arch/armv7/exynos/expower.c +++ b/sys/arch/armv7/exynos/expower.c @@ -1,4 +1,4 @@ -/* $OpenBSD: expower.c,v 1.9 2021/03/25 04:12:01 jsg Exp $ */ +/* $OpenBSD: expower.c,v 1.10 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2012-2013 Patrick Wildt * @@ -46,7 +46,7 @@ struct expower_softc { int expower_match(struct device *, void *, void *); void expower_attach(struct device *, struct device *, void *); -struct cfattach expower_ca = { +const struct cfattach expower_ca = { sizeof (struct expower_softc), expower_match, expower_attach }; diff --git a/sys/arch/armv7/exynos/tps65090.c b/sys/arch/armv7/exynos/tps65090.c index d4a3f50e447..55581ecb4ca 100644 --- a/sys/arch/armv7/exynos/tps65090.c +++ b/sys/arch/armv7/exynos/tps65090.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tps65090.c,v 1.5 2021/05/16 03:39:28 jsg Exp $ */ +/* $OpenBSD: tps65090.c,v 1.6 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2013 Patrick Wildt * @@ -82,7 +82,7 @@ void tps65090_fet_disable(int); int tps65090_get_charging(void); void tps65090_set_charging(int); -struct cfattach tpspmic_ca = { +const struct cfattach tpspmic_ca = { sizeof(struct tps65090_softc), tps65090_match, tps65090_attach }; diff --git a/sys/arch/armv7/imx/imxahci.c b/sys/arch/armv7/imx/imxahci.c index 51466587d4c..c6e70da0042 100644 --- a/sys/arch/armv7/imx/imxahci.c +++ b/sys/arch/armv7/imx/imxahci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: imxahci.c,v 1.12 2021/03/25 04:12:01 jsg Exp $ */ +/* $OpenBSD: imxahci.c,v 1.13 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2013 Patrick Wildt * @@ -95,7 +95,7 @@ struct imxahci_softc { struct ahci_softc sc; }; -struct cfattach imxahci_ca = { +const struct cfattach imxahci_ca = { sizeof(struct imxahci_softc), imxahci_match, imxahci_attach, diff --git a/sys/arch/armv7/imx/imxtemp.c b/sys/arch/armv7/imx/imxtemp.c index 2565cd5154c..97d2eb34dde 100644 --- a/sys/arch/armv7/imx/imxtemp.c +++ b/sys/arch/armv7/imx/imxtemp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: imxtemp.c,v 1.6 2021/03/25 04:12:01 jsg Exp $ */ +/* $OpenBSD: imxtemp.c,v 1.7 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2014 Patrick Wildt * Copyright (c) 2016 Mark Kettenis @@ -84,7 +84,7 @@ struct imxtemp_softc { int imxtemp_match(struct device *, void *, void *); void imxtemp_attach(struct device *, struct device *, void *); -struct cfattach imxtemp_ca = { +const struct cfattach imxtemp_ca = { sizeof(struct imxtemp_softc), imxtemp_match, imxtemp_attach }; diff --git a/sys/arch/armv7/marvell/mvacc.c b/sys/arch/armv7/marvell/mvacc.c index 52be1135680..4a01f076d3e 100644 --- a/sys/arch/armv7/marvell/mvacc.c +++ b/sys/arch/armv7/marvell/mvacc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mvacc.c,v 1.3 2017/03/24 15:22:45 patrick Exp $ */ +/* $OpenBSD: mvacc.c,v 1.4 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2016 Patrick Wildt * @@ -82,7 +82,7 @@ void mvacc_attach(struct device *, struct device *, void *); uint32_t mvacc_get_frequency(void *, uint32_t *); -struct cfattach mvacc_ca = { +const struct cfattach mvacc_ca = { sizeof (struct mvacc_softc), mvacc_match, mvacc_attach }; diff --git a/sys/arch/armv7/marvell/mvagc.c b/sys/arch/armv7/marvell/mvagc.c index 6920b513ccb..52fb817bfda 100644 --- a/sys/arch/armv7/marvell/mvagc.c +++ b/sys/arch/armv7/marvell/mvagc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mvagc.c,v 1.1 2016/10/07 19:10:46 patrick Exp $ */ +/* $OpenBSD: mvagc.c,v 1.2 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2016 Patrick Wildt * @@ -48,7 +48,7 @@ void mvagc_attach(struct device *, struct device *, void *); void mvagc_enable(void *, uint32_t *, int); uint32_t mvagc_gen_get_frequency(void *, uint32_t *); -struct cfattach mvagc_ca = { +const struct cfattach mvagc_ca = { sizeof (struct mvagc_softc), mvagc_match, mvagc_attach }; diff --git a/sys/arch/armv7/marvell/mvahci.c b/sys/arch/armv7/marvell/mvahci.c index 87381b9018a..5734c621af0 100644 --- a/sys/arch/armv7/marvell/mvahci.c +++ b/sys/arch/armv7/marvell/mvahci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mvahci.c,v 1.1 2017/03/24 20:31:58 patrick Exp $ */ +/* $OpenBSD: mvahci.c,v 1.2 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2013,2017 Patrick Wildt * @@ -57,7 +57,7 @@ int mvahci_activate(struct device *, int); extern int ahci_intr(void *); -struct cfattach mvahci_ca = { +const struct cfattach mvahci_ca = { sizeof(struct ahci_softc), mvahci_match, mvahci_attach, diff --git a/sys/arch/armv7/marvell/mvmbus.c b/sys/arch/armv7/marvell/mvmbus.c index 02de8a3d082..aa7fa27b0c7 100644 --- a/sys/arch/armv7/marvell/mvmbus.c +++ b/sys/arch/armv7/marvell/mvmbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mvmbus.c,v 1.3 2018/07/09 09:24:22 patrick Exp $ */ +/* $OpenBSD: mvmbus.c,v 1.4 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2016 Patrick Wildt * @@ -91,7 +91,7 @@ struct mbus_dram_info *mvmbus_dram_info; uint32_t mvmbus_pcie_mem_aperture[2]; uint32_t mvmbus_pcie_io_aperture[2]; -struct cfattach mvmbus_ca = { +const struct cfattach mvmbus_ca = { sizeof (struct mvmbus_softc), mvmbus_match, mvmbus_attach }; diff --git a/sys/arch/armv7/marvell/mvmpic.c b/sys/arch/armv7/marvell/mvmpic.c index 477bd2851cf..194d47fb190 100644 --- a/sys/arch/armv7/marvell/mvmpic.c +++ b/sys/arch/armv7/marvell/mvmpic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mvmpic.c,v 1.4 2020/07/14 15:34:15 patrick Exp $ */ +/* $OpenBSD: mvmpic.c,v 1.5 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2007,2009,2011 Dale Rahn * Copyright (c) 2015 Patrick Wildt @@ -81,7 +81,7 @@ void mpic_set_priority(struct mpic_softc *, int, int); void mpic_intr_enable(struct mpic_softc *, int); void mpic_intr_disable(struct mpic_softc *, int); -struct cfattach mvmpic_ca = { +const struct cfattach mvmpic_ca = { sizeof (struct mpic_softc), mpic_match, mpic_attach }; diff --git a/sys/arch/armv7/marvell/mvpcie.c b/sys/arch/armv7/marvell/mvpcie.c index e0d41486809..3a7ac922b4c 100644 --- a/sys/arch/armv7/marvell/mvpcie.c +++ b/sys/arch/armv7/marvell/mvpcie.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mvpcie.c,v 1.4 2021/03/25 04:12:01 jsg Exp $ */ +/* $OpenBSD: mvpcie.c,v 1.5 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2018 Patrick Wildt * Copyright (c) 2018 Mark Kettenis @@ -161,7 +161,7 @@ struct mvpcie_softc { int mvpcie_match(struct device *, void *, void *); void mvpcie_attach(struct device *, struct device *, void *); -struct cfattach mvpcie_ca = { +const struct cfattach mvpcie_ca = { sizeof (struct mvpcie_softc), mvpcie_match, mvpcie_attach }; diff --git a/sys/arch/armv7/marvell/mvpxa.c b/sys/arch/armv7/marvell/mvpxa.c index dba64836bd0..27aaef3a4cb 100644 --- a/sys/arch/armv7/marvell/mvpxa.c +++ b/sys/arch/armv7/marvell/mvpxa.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mvpxa.c,v 1.2 2021/03/25 04:12:01 jsg Exp $ */ +/* $OpenBSD: mvpxa.c,v 1.3 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2017 Mark Kettenis * Copyright (c) 2017 Patrick Wildt @@ -66,7 +66,7 @@ struct cfdriver mvpxa_cd = { NULL, "mvpxa", DV_DULL }; -struct cfattach mvpxa_ca = { +const struct cfattach mvpxa_ca = { sizeof(struct mvpxa_softc), mvpxa_match, mvpxa_attach }; diff --git a/sys/arch/armv7/marvell/mvsysctrl.c b/sys/arch/armv7/marvell/mvsysctrl.c index dbc72b04e5c..9fb483a20e4 100644 --- a/sys/arch/armv7/marvell/mvsysctrl.c +++ b/sys/arch/armv7/marvell/mvsysctrl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mvsysctrl.c,v 1.1 2016/10/07 14:43:50 patrick Exp $ */ +/* $OpenBSD: mvsysctrl.c,v 1.2 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2016 Patrick Wildt * @@ -52,7 +52,7 @@ void mvsysctrl_reset(void); struct mvsysctrl_softc *mvsysctrl_sc; -struct cfattach mvsysctrl_ca = { +const struct cfattach mvsysctrl_ca = { sizeof (struct mvsysctrl_softc), mvsysctrl_match, mvsysctrl_attach }; diff --git a/sys/arch/armv7/marvell/mvxhci.c b/sys/arch/armv7/marvell/mvxhci.c index 38a636fd123..15795cc1027 100644 --- a/sys/arch/armv7/marvell/mvxhci.c +++ b/sys/arch/armv7/marvell/mvxhci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mvxhci.c,v 1.3 2021/03/25 04:12:01 jsg Exp $ */ +/* $OpenBSD: mvxhci.c,v 1.4 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2017 Patrick Wildt * @@ -62,7 +62,7 @@ void mvxhci_wininit(struct mvxhci_softc *); int mvxhci_match(struct device *, void *, void *); void mvxhci_attach(struct device *, struct device *, void *); -struct cfattach mvxhci_ca = { +const struct cfattach mvxhci_ca = { sizeof (struct mvxhci_softc), mvxhci_match, mvxhci_attach }; diff --git a/sys/arch/armv7/omap/amdisplay.c b/sys/arch/armv7/omap/amdisplay.c index e1a5c9ec129..da32488114c 100644 --- a/sys/arch/armv7/omap/amdisplay.c +++ b/sys/arch/armv7/omap/amdisplay.c @@ -1,4 +1,4 @@ -/* $OpenBSD: amdisplay.c,v 1.15 2021/03/25 04:12:01 jsg Exp $ */ +/* $OpenBSD: amdisplay.c,v 1.16 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2016 Ian Sutton * @@ -114,7 +114,7 @@ struct wsdisplay_accessops amdisplay_accessops = { .list_font = rasops_list_font, }; -struct cfattach amdisplay_ca = { +const struct cfattach amdisplay_ca = { sizeof(struct amdisplay_softc), amdisplay_match, amdisplay_attach, amdisplay_detach }; diff --git a/sys/arch/armv7/omap/dmtimer.c b/sys/arch/armv7/omap/dmtimer.c index 3497dde47c2..2de377f0302 100644 --- a/sys/arch/armv7/omap/dmtimer.c +++ b/sys/arch/armv7/omap/dmtimer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dmtimer.c,v 1.13 2021/05/16 15:10:19 deraadt Exp $ */ +/* $OpenBSD: dmtimer.c,v 1.14 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2007,2009 Dale Rahn * Copyright (c) 2013 Raphael Graf @@ -135,7 +135,7 @@ struct dmtimer_softc { u_int32_t sc_nextstatevent; }; -struct cfattach dmtimer_ca = { +const struct cfattach dmtimer_ca = { sizeof (struct dmtimer_softc), NULL, dmtimer_attach }; diff --git a/sys/arch/armv7/omap/edma.c b/sys/arch/armv7/omap/edma.c index f8dcd0dabe4..60c21a31b6b 100644 --- a/sys/arch/armv7/omap/edma.c +++ b/sys/arch/armv7/omap/edma.c @@ -1,4 +1,4 @@ -/* $OpenBSD: edma.c,v 1.7 2017/09/08 05:36:51 deraadt Exp $ */ +/* $OpenBSD: edma.c,v 1.8 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2013 Sylvestre Gallon * @@ -84,7 +84,7 @@ int edma_match(struct device *, void *, void *); void edma_attach(struct device *, struct device *, void *); int edma_comp_intr(void *); -struct cfattach edma_ca = { +const struct cfattach edma_ca = { sizeof(struct edma_softc), edma_match, edma_attach }; diff --git a/sys/arch/armv7/omap/gptimer.c b/sys/arch/armv7/omap/gptimer.c index 9a58edd6c7c..ff8ac352b1c 100644 --- a/sys/arch/armv7/omap/gptimer.c +++ b/sys/arch/armv7/omap/gptimer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gptimer.c,v 1.14 2021/05/16 03:39:28 jsg Exp $ */ +/* $OpenBSD: gptimer.c,v 1.15 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2007,2009 Dale Rahn * @@ -128,7 +128,7 @@ u_int32_t ticks_err_cnt; u_int32_t ticks_err_sum; u_int32_t statvar, statmin; -struct cfattach gptimer_ca = { +const struct cfattach gptimer_ca = { sizeof (struct device), NULL, gptimer_attach }; diff --git a/sys/arch/armv7/omap/if_cpsw.c b/sys/arch/armv7/omap/if_cpsw.c index 161272ab2a0..0951ec8d4d5 100644 --- a/sys/arch/armv7/omap/if_cpsw.c +++ b/sys/arch/armv7/omap/if_cpsw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_cpsw.c,v 1.51 2021/03/25 04:12:01 jsg Exp $ */ +/* $OpenBSD: if_cpsw.c,v 1.52 2021/10/24 17:52:27 mpi Exp $ */ /* $NetBSD: if_cpsw.c,v 1.3 2013/04/17 14:36:34 bouyer Exp $ */ /* @@ -191,7 +191,7 @@ int cpsw_miscintr(void *); void cpsw_get_port_config(struct cpsw_port_config *, int); -struct cfattach cpsw_ca = { +const struct cfattach cpsw_ca = { sizeof(struct cpsw_softc), cpsw_match, cpsw_attach diff --git a/sys/arch/armv7/omap/intc.c b/sys/arch/armv7/omap/intc.c index f937ae1cad1..892a7d1b297 100644 --- a/sys/arch/armv7/omap/intc.c +++ b/sys/arch/armv7/omap/intc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: intc.c,v 1.10 2020/07/14 15:34:15 patrick Exp $ */ +/* $OpenBSD: intc.c,v 1.11 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2007,2009 Dale Rahn * @@ -111,7 +111,7 @@ void intc_calc_mask(void); void *intc_intr_establish_fdt(void *, int *, int, struct cpu_info *, int (*)(void *), void *, char *); -struct cfattach intc_ca = { +const struct cfattach intc_ca = { sizeof (struct device), intc_match, intc_attach }; diff --git a/sys/arch/armv7/omap/nxphdmi.c b/sys/arch/armv7/omap/nxphdmi.c index d4d0ea6c705..6b177fefc60 100644 --- a/sys/arch/armv7/omap/nxphdmi.c +++ b/sys/arch/armv7/omap/nxphdmi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nxphdmi.c,v 1.7 2021/03/25 04:12:01 jsg Exp $ */ +/* $OpenBSD: nxphdmi.c,v 1.8 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2016 Ian Sutton * All rights reserved. @@ -285,7 +285,7 @@ int nxphdmi_init_encoder(struct nxphdmi_softc *, struct videomode *); int nxphdmi_get_edid(uint8_t *, int); int nxphdmi_set_videomode(struct videomode *); -struct cfattach nxphdmi_ca = { +const struct cfattach nxphdmi_ca = { sizeof(struct nxphdmi_softc), nxphdmi_match, nxphdmi_attach }; diff --git a/sys/arch/armv7/omap/omap.c b/sys/arch/armv7/omap/omap.c index 74f476d7992..0b64fd59c35 100644 --- a/sys/arch/armv7/omap/omap.c +++ b/sys/arch/armv7/omap/omap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: omap.c,v 1.23 2021/05/16 03:39:28 jsg Exp $ */ +/* $OpenBSD: omap.c,v 1.24 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2005,2008 Dale Rahn * @@ -30,7 +30,7 @@ void omap3_init(void); void omap4_init(void); void am335x_init(void); -struct cfattach omap_ca = { +const struct cfattach omap_ca = { sizeof(struct armv7_softc), omap_match, armv7_attach }; diff --git a/sys/arch/armv7/omap/omapid.c b/sys/arch/armv7/omap/omapid.c index 0bb0df84fa7..7de7818d791 100644 --- a/sys/arch/armv7/omap/omapid.c +++ b/sys/arch/armv7/omap/omapid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: omapid.c,v 1.4 2021/03/25 04:12:01 jsg Exp $ */ +/* $OpenBSD: omapid.c,v 1.5 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2013 Dale Rahn * @@ -46,7 +46,7 @@ struct omapid_softc *omapid_sc; void omapid_attach(struct device *parent, struct device *self, void *args); void omapid_wpending(int flags); -struct cfattach omapid_ca = { +const struct cfattach omapid_ca = { sizeof (struct omapid_softc), NULL, omapid_attach }; diff --git a/sys/arch/armv7/omap/omdisplay.c b/sys/arch/armv7/omap/omdisplay.c index 9a07ca093f7..c554c331b0c 100644 --- a/sys/arch/armv7/omap/omdisplay.c +++ b/sys/arch/armv7/omap/omdisplay.c @@ -1,4 +1,4 @@ -/* $OpenBSD: omdisplay.c,v 1.8 2020/05/25 09:55:48 jsg Exp $ */ +/* $OpenBSD: omdisplay.c,v 1.9 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2007 Dale Rahn * @@ -455,7 +455,7 @@ void omdisplay_stop(struct omdisplay_softc *sc); int omdisplay_intr(void *v); void omdisplay_dumpreg(struct omdisplay_softc *sc); -struct cfattach omdisplay_ca = { +const struct cfattach omdisplay_ca = { sizeof (struct omdisplay_softc), omdisplay_match, omdisplay_attach, NULL, omdisplay_activate }; diff --git a/sys/arch/armv7/omap/omdog.c b/sys/arch/armv7/omap/omdog.c index 2f6eb9e6ce7..9ad1ff88576 100644 --- a/sys/arch/armv7/omap/omdog.c +++ b/sys/arch/armv7/omap/omdog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: omdog.c,v 1.9 2021/03/25 04:12:01 jsg Exp $ */ +/* $OpenBSD: omdog.c,v 1.10 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2013 Federico G. Schwindt * Copyright (c) 2007,2009 Dale Rahn @@ -63,7 +63,7 @@ void omdog_sync(struct omdog_softc *); int omdog_cb(void *, int); void omdog_reset(void); -struct cfattach omdog_ca = { +const struct cfattach omdog_ca = { sizeof (struct omdog_softc), omdog_match, omdog_attach, NULL, omdog_activate }; diff --git a/sys/arch/armv7/omap/omehci.c b/sys/arch/armv7/omap/omehci.c index c797442e821..7cbfa300469 100644 --- a/sys/arch/armv7/omap/omehci.c +++ b/sys/arch/armv7/omap/omehci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: omehci.c,v 1.8 2021/03/25 04:12:01 jsg Exp $ */ +/* $OpenBSD: omehci.c,v 1.9 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2005 David Gwynne @@ -91,7 +91,7 @@ void omehci_utmi_init(struct omehci_softc *sc, unsigned int en_mask); void misc_setup(struct omehci_softc *sc); void omehci_uhh_init(struct omehci_softc *sc); -struct cfattach omehci_ca = { +const struct cfattach omehci_ca = { sizeof (struct omehci_softc), omehci_match, omehci_attach, omehci_detach, omehci_activate }; diff --git a/sys/arch/armv7/omap/omgpio.c b/sys/arch/armv7/omap/omgpio.c index e0072bc7f32..7a3e3bc37d6 100644 --- a/sys/arch/armv7/omap/omgpio.c +++ b/sys/arch/armv7/omap/omgpio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: omgpio.c,v 1.13 2021/03/25 04:12:01 jsg Exp $ */ +/* $OpenBSD: omgpio.c,v 1.14 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2007,2009 Dale Rahn * @@ -202,7 +202,7 @@ void omgpio_config_pin(void *, uint32_t *, int); int omgpio_get_pin(void *, uint32_t *); void omgpio_set_pin(void *, uint32_t *, int); -struct cfattach omgpio_ca = { +const struct cfattach omgpio_ca = { sizeof (struct omgpio_softc), omgpio_match, omgpio_attach }; diff --git a/sys/arch/armv7/omap/ommmc.c b/sys/arch/armv7/omap/ommmc.c index d3763425a3d..381064c0ee6 100644 --- a/sys/arch/armv7/omap/ommmc.c +++ b/sys/arch/armv7/omap/ommmc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ommmc.c,v 1.39 2021/03/25 04:12:01 jsg Exp $ */ +/* $OpenBSD: ommmc.c,v 1.40 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2009 Dale Rahn @@ -279,7 +279,7 @@ struct cfdriver ommmc_cd = { NULL, "ommmc", DV_DULL }; -struct cfattach ommmc_ca = { +const struct cfattach ommmc_ca = { sizeof(struct ommmc_softc), ommmc_match, ommmc_attach }; diff --git a/sys/arch/armv7/omap/omohci.c b/sys/arch/armv7/omap/omohci.c index b4e1a8ad5ee..c00c1288e6a 100644 --- a/sys/arch/armv7/omap/omohci.c +++ b/sys/arch/armv7/omap/omohci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: omohci.c,v 1.3 2014/05/19 13:11:31 mpi Exp $ */ +/* $OpenBSD: omohci.c,v 1.4 2021/10/24 17:52:28 mpi Exp $ */ /* * Copyright (c) 2005 David Gwynne @@ -109,7 +109,7 @@ struct omohci_softc { void omohci_enable(struct omohci_softc *); void omohci_disable(struct omohci_softc *); -struct cfattach omohci_ca = { +const struct cfattach omohci_ca = { sizeof (struct omohci_softc), omohci_match, omohci_attach, omohci_detach, omohci_detach }; diff --git a/sys/arch/armv7/omap/omusbtll.c b/sys/arch/armv7/omap/omusbtll.c index 9d28de55f33..ada7b36c3af 100644 --- a/sys/arch/armv7/omap/omusbtll.c +++ b/sys/arch/armv7/omap/omusbtll.c @@ -1,4 +1,4 @@ -/* $OpenBSD: omusbtll.c,v 1.4 2021/03/25 04:12:01 jsg Exp $ */ +/* $OpenBSD: omusbtll.c,v 1.5 2021/10/24 17:52:28 mpi Exp $ */ /* * Copyright (c) 2010 Dale Rahn * @@ -89,7 +89,7 @@ struct omusbtll_softc { void omusbtll_attach(struct device *parent, struct device *self, void *args); void omusbtll_init(uint32_t channel_mask); -struct cfattach omusbtll_ca = { +const struct cfattach omusbtll_ca = { sizeof (struct omusbtll_softc), NULL, omusbtll_attach }; diff --git a/sys/arch/armv7/omap/omwugen.c b/sys/arch/armv7/omap/omwugen.c index 951cd4b14e2..0acc5320673 100644 --- a/sys/arch/armv7/omap/omwugen.c +++ b/sys/arch/armv7/omap/omwugen.c @@ -1,4 +1,4 @@ -/* $OpenBSD: omwugen.c,v 1.1 2016/09/15 21:55:51 jsg Exp $ */ +/* $OpenBSD: omwugen.c,v 1.2 2021/10/24 17:52:28 mpi Exp $ */ /* * Copyright (c) 2016 Mark Kettenis * @@ -31,7 +31,7 @@ struct omwugen_softc { int omwugen_match(struct device *, void *, void *); void omwugen_attach(struct device *, struct device *, void *); -struct cfattach omwugen_ca = { +const struct cfattach omwugen_ca = { sizeof(struct omwugen_softc), omwugen_match, omwugen_attach }; diff --git a/sys/arch/armv7/omap/prcm.c b/sys/arch/armv7/omap/prcm.c index 58c56228578..25090c29a1b 100644 --- a/sys/arch/armv7/omap/prcm.c +++ b/sys/arch/armv7/omap/prcm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: prcm.c,v 1.17 2021/05/16 15:10:19 deraadt Exp $ */ +/* $OpenBSD: prcm.c,v 1.18 2021/10/24 17:52:28 mpi Exp $ */ /* * Copyright (c) 2007,2009 Dale Rahn * @@ -105,7 +105,7 @@ void prcm_v4_enablemodule(struct prcm_softc *, int); int prcm_v4_hsusbhost_activate(int); int prcm_v4_hsusbhost_set_source(int, int); -struct cfattach prcm_ca = { +const struct cfattach prcm_ca = { sizeof (struct prcm_softc), NULL, prcm_attach }; diff --git a/sys/arch/armv7/omap/ti_iic.c b/sys/arch/armv7/omap/ti_iic.c index 3b7862d8ff9..48f04816710 100644 --- a/sys/arch/armv7/omap/ti_iic.c +++ b/sys/arch/armv7/omap/ti_iic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ti_iic.c,v 1.14 2021/03/25 04:12:01 jsg Exp $ */ +/* $OpenBSD: ti_iic.c,v 1.15 2021/10/24 17:52:28 mpi Exp $ */ /* $NetBSD: ti_iic.c,v 1.4 2013/04/25 13:04:27 rkujawa Exp $ */ /* @@ -139,7 +139,7 @@ int ti_iic_wait(struct ti_iic_softc *, uint16_t, uint16_t, int); uint32_t ti_iic_stat(struct ti_iic_softc *, uint32_t); int ti_iic_flush(struct ti_iic_softc *); -struct cfattach tiiic_ca = { +const struct cfattach tiiic_ca = { sizeof (struct ti_iic_softc), ti_iic_match, ti_iic_attach }; diff --git a/sys/arch/armv7/sunxi/sxiahci.c b/sys/arch/armv7/sunxi/sxiahci.c index d1daf23ab74..0b02d264d2b 100644 --- a/sys/arch/armv7/sunxi/sxiahci.c +++ b/sys/arch/armv7/sunxi/sxiahci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sxiahci.c,v 1.16 2021/03/25 04:12:01 jsg Exp $ */ +/* $OpenBSD: sxiahci.c,v 1.17 2021/10/24 17:52:28 mpi Exp $ */ /* * Copyright (c) 2013 Patrick Wildt * Copyright (c) 2013,2014 Artturi Alm @@ -66,7 +66,7 @@ struct sxiahci_softc { }; -struct cfattach sxiahci_ca = { +const struct cfattach sxiahci_ca = { sizeof(struct sxiahci_softc), sxiahci_match, sxiahci_attach, diff --git a/sys/arch/armv7/sunxi/sxie.c b/sys/arch/armv7/sunxi/sxie.c index 6de0d3cecc3..8f8cb61b1fc 100644 --- a/sys/arch/armv7/sunxi/sxie.c +++ b/sys/arch/armv7/sunxi/sxie.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sxie.c,v 1.32 2021/03/25 04:12:01 jsg Exp $ */ +/* $OpenBSD: sxie.c,v 1.33 2021/10/24 17:52:28 mpi Exp $ */ /* * Copyright (c) 2012-2013 Patrick Wildt * Copyright (c) 2013 Artturi Alm @@ -185,7 +185,7 @@ void sxie_miibus_statchg(struct device *); int sxie_ifm_change(struct ifnet *); void sxie_ifm_status(struct ifnet *, struct ifmediareq *); -struct cfattach sxie_ca = { +const struct cfattach sxie_ca = { sizeof (struct sxie_softc), sxie_match, sxie_attach }; diff --git a/sys/arch/armv7/sunxi/sxiintc.c b/sys/arch/armv7/sunxi/sxiintc.c index abda083ea28..b9759def203 100644 --- a/sys/arch/armv7/sunxi/sxiintc.c +++ b/sys/arch/armv7/sunxi/sxiintc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sxiintc.c,v 1.9 2021/05/16 15:10:19 deraadt Exp $ */ +/* $OpenBSD: sxiintc.c,v 1.10 2021/10/24 17:52:28 mpi Exp $ */ /* * Copyright (c) 2007,2009 Dale Rahn * Copyright (c) 2013 Artturi Alm @@ -151,7 +151,7 @@ void sxiintc_calc_masks(void); void *sxiintc_intr_establish_fdt(void *, int *, int, struct cpu_info *, int (*)(void *), void *, char *); -struct cfattach sxiintc_ca = { +const struct cfattach sxiintc_ca = { sizeof (struct device), sxiintc_match, sxiintc_attach }; diff --git a/sys/arch/armv7/sunxi/sxitimer.c b/sys/arch/armv7/sunxi/sxitimer.c index a0959a524b3..21250815162 100644 --- a/sys/arch/armv7/sunxi/sxitimer.c +++ b/sys/arch/armv7/sunxi/sxitimer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sxitimer.c,v 1.17 2021/03/25 04:12:01 jsg Exp $ */ +/* $OpenBSD: sxitimer.c,v 1.18 2021/10/24 17:52:28 mpi Exp $ */ /* * Copyright (c) 2007,2009 Dale Rahn * Copyright (c) 2013 Raphael Graf @@ -120,7 +120,7 @@ struct sxitimer_softc { struct device sc_dev; }; -struct cfattach sxitimer_ca = { +const struct cfattach sxitimer_ca = { sizeof (struct sxitimer_softc), sxitimer_match, sxitimer_attach }; diff --git a/sys/arch/armv7/vexpress/pciecam.c b/sys/arch/armv7/vexpress/pciecam.c index c6fde3734fc..63d58134e87 100644 --- a/sys/arch/armv7/vexpress/pciecam.c +++ b/sys/arch/armv7/vexpress/pciecam.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pciecam.c,v 1.4 2021/03/25 04:12:01 jsg Exp $ */ +/* $OpenBSD: pciecam.c,v 1.5 2021/10/24 17:52:28 mpi Exp $ */ /* * Copyright (c) 2013,2017 Patrick Wildt * @@ -102,7 +102,7 @@ void *pciecam_intr_establish(void *, pci_intr_handle_t, int, struct cpu_info *, void pciecam_intr_disestablish(void *, void *); int pciecam_bs_map(void *, uint64_t, bus_size_t, int, bus_space_handle_t *); -struct cfattach pciecam_ca = { +const struct cfattach pciecam_ca = { sizeof (struct pciecam_softc), pciecam_match, pciecam_attach }; diff --git a/sys/arch/armv7/vexpress/sysreg.c b/sys/arch/armv7/vexpress/sysreg.c index 31036655c5e..9bb3c9585e1 100644 --- a/sys/arch/armv7/vexpress/sysreg.c +++ b/sys/arch/armv7/vexpress/sysreg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sysreg.c,v 1.5 2021/03/25 04:12:01 jsg Exp $ */ +/* $OpenBSD: sysreg.c,v 1.6 2021/10/24 17:52:28 mpi Exp $ */ /* * Copyright (c) 2015 Jonathan Gray @@ -58,7 +58,7 @@ void sysconf_function(struct sysreg_softc *, int); void sysconf_reboot(void); void sysconf_shutdown(void); -struct cfattach sysreg_ca = { +const struct cfattach sysreg_ca = { sizeof (struct sysreg_softc), sysreg_match, sysreg_attach }; diff --git a/sys/dev/fdt/acrtc.c b/sys/dev/fdt/acrtc.c index 87dd31e4221..72cc66ab51d 100644 --- a/sys/dev/fdt/acrtc.c +++ b/sys/dev/fdt/acrtc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acrtc.c,v 1.4 2020/03/28 11:40:29 kettenis Exp $ */ +/* $OpenBSD: acrtc.c,v 1.5 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2017 Mark Kettenis * @@ -72,7 +72,7 @@ struct acrtc_softc { int acrtc_match(struct device *, void *, void *); void acrtc_attach(struct device *, struct device *, void *); -struct cfattach acrtc_ca = { +const struct cfattach acrtc_ca = { sizeof(struct acrtc_softc), acrtc_match, acrtc_attach }; diff --git a/sys/dev/fdt/ahci_fdt.c b/sys/dev/fdt/ahci_fdt.c index cd2abd5047a..ede60d26908 100644 --- a/sys/dev/fdt/ahci_fdt.c +++ b/sys/dev/fdt/ahci_fdt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ahci_fdt.c,v 1.5 2018/12/04 11:25:48 kettenis Exp $ */ +/* $OpenBSD: ahci_fdt.c,v 1.6 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2013,2017 Patrick Wildt * @@ -39,7 +39,7 @@ int ahci_fdt_activate(struct device *, int); extern int ahci_intr(void *); -struct cfattach ahci_fdt_ca = { +const struct cfattach ahci_fdt_ca = { sizeof(struct ahci_softc), ahci_fdt_match, ahci_fdt_attach, diff --git a/sys/dev/fdt/amlclock.c b/sys/dev/fdt/amlclock.c index c74b600d7f7..9c26eec4407 100644 --- a/sys/dev/fdt/amlclock.c +++ b/sys/dev/fdt/amlclock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: amlclock.c,v 1.12 2020/12/22 15:23:51 kettenis Exp $ */ +/* $OpenBSD: amlclock.c,v 1.13 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2019 Mark Kettenis * @@ -149,7 +149,7 @@ struct amlclock_softc { int amlclock_match(struct device *, void *, void *); void amlclock_attach(struct device *, struct device *, void *); -struct cfattach amlclock_ca = { +const struct cfattach amlclock_ca = { sizeof (struct amlclock_softc), amlclock_match, amlclock_attach }; diff --git a/sys/dev/fdt/amldwusb.c b/sys/dev/fdt/amldwusb.c index 667b966c6fd..9cffb0fa86f 100644 --- a/sys/dev/fdt/amldwusb.c +++ b/sys/dev/fdt/amldwusb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: amldwusb.c,v 1.3 2020/12/17 22:39:45 kettenis Exp $ */ +/* $OpenBSD: amldwusb.c,v 1.4 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2019 Mark kettenis * @@ -121,7 +121,7 @@ struct amldwusb_softc { int amldwusb_match(struct device *, void *, void *); void amldwusb_attach(struct device *, struct device *, void *); -struct cfattach amldwusb_ca = { +const struct cfattach amldwusb_ca = { sizeof(struct amldwusb_softc), amldwusb_match, amldwusb_attach }; diff --git a/sys/dev/fdt/amliic.c b/sys/dev/fdt/amliic.c index c6977c7962a..c0a22bd2a6b 100644 --- a/sys/dev/fdt/amliic.c +++ b/sys/dev/fdt/amliic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: amliic.c,v 1.4 2021/06/14 12:06:06 kettenis Exp $ */ +/* $OpenBSD: amliic.c,v 1.5 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2019 Mark Kettenis * @@ -76,7 +76,7 @@ struct amliic_softc { int amliic_match(struct device *, void *, void *); void amliic_attach(struct device *, struct device *, void *); -struct cfattach amliic_ca = { +const struct cfattach amliic_ca = { sizeof (struct amliic_softc), amliic_match, amliic_attach }; diff --git a/sys/dev/fdt/amlmmc.c b/sys/dev/fdt/amlmmc.c index bc657e4844e..e106e4670b2 100644 --- a/sys/dev/fdt/amlmmc.c +++ b/sys/dev/fdt/amlmmc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: amlmmc.c,v 1.10 2021/04/20 19:33:03 kettenis Exp $ */ +/* $OpenBSD: amlmmc.c,v 1.11 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2019 Mark Kettenis * @@ -156,7 +156,7 @@ struct amlmmc_softc { int amlmmc_match(struct device *, void *, void *); void amlmmc_attach(struct device *, struct device *, void *); -struct cfattach amlmmc_ca = { +const struct cfattach amlmmc_ca = { sizeof (struct amlmmc_softc), amlmmc_match, amlmmc_attach }; diff --git a/sys/dev/fdt/amlpciephy.c b/sys/dev/fdt/amlpciephy.c index 81c5b945899..e879f9c5415 100644 --- a/sys/dev/fdt/amlpciephy.c +++ b/sys/dev/fdt/amlpciephy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: amlpciephy.c,v 1.4 2020/12/27 20:37:58 kettenis Exp $ */ +/* $OpenBSD: amlpciephy.c,v 1.5 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2019 Mark Kettenis * @@ -62,7 +62,7 @@ struct amlpciephy_softc { int amlpciephy_match(struct device *, void *, void *); void amlpciephy_attach(struct device *, struct device *, void *); -struct cfattach amlpciephy_ca = { +const struct cfattach amlpciephy_ca = { sizeof (struct amlpciephy_softc), amlpciephy_match, amlpciephy_attach }; diff --git a/sys/dev/fdt/amlpinctrl.c b/sys/dev/fdt/amlpinctrl.c index 162ba9165a3..d03c0146d6d 100644 --- a/sys/dev/fdt/amlpinctrl.c +++ b/sys/dev/fdt/amlpinctrl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: amlpinctrl.c,v 1.10 2021/05/21 15:37:54 kettenis Exp $ */ +/* $OpenBSD: amlpinctrl.c,v 1.11 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2019 Mark Kettenis * @@ -356,7 +356,7 @@ struct amlpinctrl_softc { int amlpinctrl_match(struct device *, void *, void *); void amlpinctrl_attach(struct device *, struct device *, void *); -struct cfattach amlpinctrl_ca = { +const struct cfattach amlpinctrl_ca = { sizeof(struct amlpinctrl_softc), amlpinctrl_match, amlpinctrl_attach }; diff --git a/sys/dev/fdt/amlpwm.c b/sys/dev/fdt/amlpwm.c index 63c46d138b2..91c28b2dc72 100644 --- a/sys/dev/fdt/amlpwm.c +++ b/sys/dev/fdt/amlpwm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: amlpwm.c,v 1.2 2020/12/29 16:04:27 kettenis Exp $ */ +/* $OpenBSD: amlpwm.c,v 1.3 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2019 Mark Kettenis * @@ -69,7 +69,7 @@ struct amlpwm_softc { int amlpwm_match(struct device *, void *, void *); void amlpwm_attach(struct device *, struct device *, void *); -struct cfattach amlpwm_ca = { +const struct cfattach amlpwm_ca = { sizeof (struct amlpwm_softc), amlpwm_match, amlpwm_attach }; diff --git a/sys/dev/fdt/amlreset.c b/sys/dev/fdt/amlreset.c index be0576e1676..c5562caa82f 100644 --- a/sys/dev/fdt/amlreset.c +++ b/sys/dev/fdt/amlreset.c @@ -1,4 +1,4 @@ -/* $OpenBSD: amlreset.c,v 1.1 2019/08/26 09:42:31 kettenis Exp $ */ +/* $OpenBSD: amlreset.c,v 1.2 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2019 Mark Kettenis * @@ -52,7 +52,7 @@ struct amlreset_softc { int amlreset_match(struct device *, void *, void *); void amlreset_attach(struct device *, struct device *, void *); -struct cfattach amlreset_ca = { +const struct cfattach amlreset_ca = { sizeof (struct amlreset_softc), amlreset_match, amlreset_attach }; diff --git a/sys/dev/fdt/amlrng.c b/sys/dev/fdt/amlrng.c index 52f1d2d1bb2..d78f96a6b10 100644 --- a/sys/dev/fdt/amlrng.c +++ b/sys/dev/fdt/amlrng.c @@ -1,4 +1,4 @@ -/* $OpenBSD: amlrng.c,v 1.2 2020/05/29 04:42:24 deraadt Exp $ */ +/* $OpenBSD: amlrng.c,v 1.3 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2019 Mark Kettenis * @@ -43,7 +43,7 @@ struct amlrng_softc { int amlrng_match(struct device *, void *, void *); void amlrng_attach(struct device *, struct device *, void *); -struct cfattach amlrng_ca = { +const struct cfattach amlrng_ca = { sizeof (struct amlrng_softc), amlrng_match, amlrng_attach }; diff --git a/sys/dev/fdt/amlsm.c b/sys/dev/fdt/amlsm.c index 7080978c4dc..29e54188544 100644 --- a/sys/dev/fdt/amlsm.c +++ b/sys/dev/fdt/amlsm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: amlsm.c,v 1.2 2020/05/29 04:42:25 deraadt Exp $ */ +/* $OpenBSD: amlsm.c,v 1.3 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2020 Mark Kettenis * @@ -53,7 +53,7 @@ struct amlsm_softc { int amlsm_match(struct device *, void *, void *); void amlsm_attach(struct device *, struct device *, void *); -struct cfattach amlsm_ca = { +const struct cfattach amlsm_ca = { sizeof (struct amlsm_softc), amlsm_match, amlsm_attach }; diff --git a/sys/dev/fdt/amltemp.c b/sys/dev/fdt/amltemp.c index e0a019197ba..d996edf33bf 100644 --- a/sys/dev/fdt/amltemp.c +++ b/sys/dev/fdt/amltemp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: amltemp.c,v 1.1 2020/01/14 16:56:32 kettenis Exp $ */ +/* $OpenBSD: amltemp.c,v 1.2 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2020 Mark Kettenis * @@ -71,7 +71,7 @@ struct amltemp_softc { int amltemp_match(struct device *, void *, void *); void amltemp_attach(struct device *, struct device *, void *); -struct cfattach amltemp_ca = { +const struct cfattach amltemp_ca = { sizeof (struct amltemp_softc), amltemp_match, amltemp_attach }; diff --git a/sys/dev/fdt/amluart.c b/sys/dev/fdt/amluart.c index 3474446f6c8..03abf60c351 100644 --- a/sys/dev/fdt/amluart.c +++ b/sys/dev/fdt/amluart.c @@ -1,4 +1,4 @@ -/* $OpenBSD: amluart.c,v 1.2 2021/08/31 12:24:15 jan Exp $ */ +/* $OpenBSD: amluart.c,v 1.3 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2019 Mark Kettenis * @@ -95,7 +95,7 @@ struct cfdriver amluart_cd = { NULL, "amluart", DV_TTY }; -struct cfattach amluart_ca = { +const struct cfattach amluart_ca = { sizeof(struct amluart_softc), amluart_match, amluart_attach }; diff --git a/sys/dev/fdt/amlusbphy.c b/sys/dev/fdt/amlusbphy.c index fee5ce0d196..0451d0cb112 100644 --- a/sys/dev/fdt/amlusbphy.c +++ b/sys/dev/fdt/amlusbphy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: amlusbphy.c,v 1.1 2019/08/29 17:20:03 kettenis Exp $ */ +/* $OpenBSD: amlusbphy.c,v 1.2 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2019 Mark Kettenis * @@ -100,7 +100,7 @@ struct amlusbphy_softc { int amlusbphy_match(struct device *, void *, void *); void amlusbphy_attach(struct device *, struct device *, void *); -struct cfattach amlusbphy_ca = { +const struct cfattach amlusbphy_ca = { sizeof (struct amlusbphy_softc), amlusbphy_match, amlusbphy_attach }; diff --git a/sys/dev/fdt/axppmic.c b/sys/dev/fdt/axppmic.c index f301c03e8c8..a24740f2a37 100644 --- a/sys/dev/fdt/axppmic.c +++ b/sys/dev/fdt/axppmic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: axppmic.c,v 1.10 2021/09/06 19:55:27 patrick Exp $ */ +/* $OpenBSD: axppmic.c,v 1.11 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2017 Mark Kettenis * @@ -346,7 +346,7 @@ void axppmic_attach_common(struct axppmic_softc *, const char *, int); int axppmic_i2c_match(struct device *, void *, void *); void axppmic_i2c_attach(struct device *, struct device *, void *); -struct cfattach axppmic_ca = { +const struct cfattach axppmic_ca = { sizeof(struct axppmic_softc), axppmic_i2c_match, axppmic_i2c_attach }; @@ -422,7 +422,7 @@ axppmic_i2c_write(struct axppmic_softc *sc, uint8_t reg, uint8_t value) int axppmic_rsb_match(struct device *, void *, void *); void axppmic_rsb_attach(struct device *, struct device *, void *); -struct cfattach axppmic_rsb_ca = { +const struct cfattach axppmic_rsb_ca = { sizeof(struct axppmic_softc), axppmic_rsb_match, axppmic_rsb_attach }; diff --git a/sys/dev/fdt/bcm2835_aux.c b/sys/dev/fdt/bcm2835_aux.c index 23f7e92e827..6bf5238928e 100644 --- a/sys/dev/fdt/bcm2835_aux.c +++ b/sys/dev/fdt/bcm2835_aux.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bcm2835_aux.c,v 1.6 2020/07/17 08:07:34 patrick Exp $ */ +/* $OpenBSD: bcm2835_aux.c,v 1.7 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2017 Mark Kettenis * @@ -48,7 +48,7 @@ struct bcmaux_softc { int bcmaux_match(struct device *, void *, void *); void bcmaux_attach(struct device *, struct device *, void *); -struct cfattach bcmaux_ca = { +const struct cfattach bcmaux_ca = { sizeof(struct bcmaux_softc), bcmaux_match, bcmaux_attach }; diff --git a/sys/dev/fdt/bcm2835_dog.c b/sys/dev/fdt/bcm2835_dog.c index 6645bad7d0f..572d36de189 100644 --- a/sys/dev/fdt/bcm2835_dog.c +++ b/sys/dev/fdt/bcm2835_dog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bcm2835_dog.c,v 1.2 2019/09/05 16:58:36 patrick Exp $ */ +/* $OpenBSD: bcm2835_dog.c,v 1.3 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2015 Patrick Wildt * @@ -64,7 +64,7 @@ int bcmdog_activate(struct device *, int); int bcmdog_wdog_cb(void *, int); void bcmdog_wdog_reset(void); -struct cfattach bcmdog_ca = { +const struct cfattach bcmdog_ca = { sizeof (struct bcmdog_softc), bcmdog_match, bcmdog_attach, NULL, bcmdog_activate }; diff --git a/sys/dev/fdt/bcm2835_rng.c b/sys/dev/fdt/bcm2835_rng.c index 128e1bf37ca..9d9a57d90fd 100644 --- a/sys/dev/fdt/bcm2835_rng.c +++ b/sys/dev/fdt/bcm2835_rng.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bcm2835_rng.c,v 1.3 2020/05/29 04:42:25 deraadt Exp $ */ +/* $OpenBSD: bcm2835_rng.c,v 1.4 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2018 Mark Kettenis * @@ -49,7 +49,7 @@ struct bcmrng_softc { int bcmrng_match(struct device *, void *, void *); void bcmrng_attach(struct device *, struct device *, void *); -struct cfattach bcmrng_ca = { +const struct cfattach bcmrng_ca = { sizeof (struct bcmrng_softc), bcmrng_match, bcmrng_attach }; diff --git a/sys/dev/fdt/bcm2835_temp.c b/sys/dev/fdt/bcm2835_temp.c index c5aab990656..bd2e2d89775 100644 --- a/sys/dev/fdt/bcm2835_temp.c +++ b/sys/dev/fdt/bcm2835_temp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bcm2835_temp.c,v 1.1 2018/02/24 11:06:59 kettenis Exp $ */ +/* $OpenBSD: bcm2835_temp.c,v 1.2 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2018 Mark Kettenis * @@ -52,7 +52,7 @@ struct bcmtemp_softc { int bcmtemp_match(struct device *, void *, void *); void bcmtemp_attach(struct device *, struct device *, void *); -struct cfattach bcmtemp_ca = { +const struct cfattach bcmtemp_ca = { sizeof (struct bcmtemp_softc), bcmtemp_match, bcmtemp_attach }; diff --git a/sys/dev/fdt/ccp_fdt.c b/sys/dev/fdt/ccp_fdt.c index 3174b5252e3..7d5465d08e1 100644 --- a/sys/dev/fdt/ccp_fdt.c +++ b/sys/dev/fdt/ccp_fdt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ccp_fdt.c,v 1.1 2018/04/20 04:37:21 dlg Exp $ */ +/* $OpenBSD: ccp_fdt.c,v 1.2 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2018 David Gwynne * @@ -33,7 +33,7 @@ static int ccp_fdt_match(struct device *, void *, void *); static void ccp_fdt_attach(struct device *, struct device *, void *); -struct cfattach ccp_fdt_ca = { +const struct cfattach ccp_fdt_ca = { sizeof(struct ccp_softc), ccp_fdt_match, ccp_fdt_attach diff --git a/sys/dev/fdt/com_fdt.c b/sys/dev/fdt/com_fdt.c index c8192b2c560..5ee3b6d3c0c 100644 --- a/sys/dev/fdt/com_fdt.c +++ b/sys/dev/fdt/com_fdt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: com_fdt.c,v 1.5 2021/04/24 10:33:09 kettenis Exp $ */ +/* $OpenBSD: com_fdt.c,v 1.6 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2016 Patrick Wildt * @@ -39,7 +39,7 @@ int com_fdt_match(struct device *, void *, void *); void com_fdt_attach(struct device *, struct device *, void *); int com_fdt_intr_designware(void *); -struct cfattach com_fdt_ca = { +const struct cfattach com_fdt_ca = { sizeof (struct com_softc), com_fdt_match, com_fdt_attach }; diff --git a/sys/dev/fdt/dwdog.c b/sys/dev/fdt/dwdog.c index 4b54027054c..61fb2c8bad0 100644 --- a/sys/dev/fdt/dwdog.c +++ b/sys/dev/fdt/dwdog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dwdog.c,v 1.2 2019/08/29 11:51:48 kettenis Exp $ */ +/* $OpenBSD: dwdog.c,v 1.3 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2017 Mark Kettenis * @@ -56,7 +56,7 @@ struct dwdog_softc { int dwdog_match(struct device *, void *, void *); void dwdog_attach(struct device *, struct device *, void *); -struct cfattach dwdog_ca = { +const struct cfattach dwdog_ca = { sizeof(struct dwdog_softc), dwdog_match, dwdog_attach }; diff --git a/sys/dev/fdt/dwmmc.c b/sys/dev/fdt/dwmmc.c index 0946cd8a553..2357bd1292a 100644 --- a/sys/dev/fdt/dwmmc.c +++ b/sys/dev/fdt/dwmmc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dwmmc.c,v 1.24 2021/05/05 09:17:19 jsg Exp $ */ +/* $OpenBSD: dwmmc.c,v 1.25 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2017 Mark Kettenis * @@ -221,7 +221,7 @@ struct dwmmc_softc { int dwmmc_match(struct device *, void *, void *); void dwmmc_attach(struct device *, struct device *, void *); -struct cfattach dwmmc_ca = { +const struct cfattach dwmmc_ca = { sizeof(struct dwmmc_softc), dwmmc_match, dwmmc_attach }; diff --git a/sys/dev/fdt/dwpcie.c b/sys/dev/fdt/dwpcie.c index ea04cb521fb..70f618b3489 100644 --- a/sys/dev/fdt/dwpcie.c +++ b/sys/dev/fdt/dwpcie.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dwpcie.c,v 1.35 2021/06/25 18:55:26 kettenis Exp $ */ +/* $OpenBSD: dwpcie.c,v 1.36 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2018 Mark Kettenis * @@ -236,7 +236,7 @@ struct dwpcie_intr_handle { int dwpcie_match(struct device *, void *, void *); void dwpcie_attach(struct device *, struct device *, void *); -struct cfattach dwpcie_ca = { +const struct cfattach dwpcie_ca = { sizeof (struct dwpcie_softc), dwpcie_match, dwpcie_attach }; diff --git a/sys/dev/fdt/ehci_fdt.c b/sys/dev/fdt/ehci_fdt.c index 807fac3d441..a1bd6522a7c 100644 --- a/sys/dev/fdt/ehci_fdt.c +++ b/sys/dev/fdt/ehci_fdt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ehci_fdt.c,v 1.6 2019/08/11 11:16:05 kettenis Exp $ */ +/* $OpenBSD: ehci_fdt.c,v 1.7 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2005 David Gwynne @@ -50,7 +50,7 @@ int ehci_fdt_match(struct device *, void *, void *); void ehci_fdt_attach(struct device *, struct device *, void *); int ehci_fdt_detach(struct device *, int); -struct cfattach ehci_fdt_ca = { +const struct cfattach ehci_fdt_ca = { sizeof(struct ehci_fdt_softc), ehci_fdt_match, ehci_fdt_attach, ehci_fdt_detach, ehci_activate }; diff --git a/sys/dev/fdt/exrtc.c b/sys/dev/fdt/exrtc.c index 20a2039304a..6bdb4e54b56 100644 --- a/sys/dev/fdt/exrtc.c +++ b/sys/dev/fdt/exrtc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exrtc.c,v 1.3 2019/08/29 11:51:48 kettenis Exp $ */ +/* $OpenBSD: exrtc.c,v 1.4 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2017 Mark Kettenis * @@ -55,7 +55,7 @@ struct exrtc_softc { int exrtc_match(struct device *, void *, void *); void exrtc_attach(struct device *, struct device *, void *); -struct cfattach exrtc_ca = { +const struct cfattach exrtc_ca = { sizeof(struct exrtc_softc), exrtc_match, exrtc_attach }; diff --git a/sys/dev/fdt/fanpwr.c b/sys/dev/fdt/fanpwr.c index 483ae576823..9098a4944bb 100644 --- a/sys/dev/fdt/fanpwr.c +++ b/sys/dev/fdt/fanpwr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fanpwr.c,v 1.4 2020/11/12 10:47:07 patrick Exp $ */ +/* $OpenBSD: fanpwr.c,v 1.5 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2018 Mark Kettenis * @@ -60,7 +60,7 @@ struct fanpwr_softc { int fanpwr_match(struct device *, void *, void *); void fanpwr_attach(struct device *, struct device *, void *); -struct cfattach fanpwr_ca = { +const struct cfattach fanpwr_ca = { sizeof(struct fanpwr_softc), fanpwr_match, fanpwr_attach }; diff --git a/sys/dev/fdt/fusbtc.c b/sys/dev/fdt/fusbtc.c index dd03b2345e3..24f9834baab 100644 --- a/sys/dev/fdt/fusbtc.c +++ b/sys/dev/fdt/fusbtc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fusbtc.c,v 1.1 2019/05/11 14:43:27 patrick Exp $ */ +/* $OpenBSD: fusbtc.c,v 1.2 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2019 Patrick Wildt * @@ -234,7 +234,7 @@ void fusbtc_clr_reg(struct fusbtc_softc *, uint8_t, uint8_t); void fusbtc_write_reg(struct fusbtc_softc *, uint8_t, uint8_t); uint8_t fusbtc_read_reg(struct fusbtc_softc *, uint8_t); -struct cfattach fusbtc_ca = { +const struct cfattach fusbtc_ca = { sizeof(struct fusbtc_softc), fusbtc_match, fusbtc_attach, diff --git a/sys/dev/fdt/hiclock.c b/sys/dev/fdt/hiclock.c index caa4e16c9db..509b12e45db 100644 --- a/sys/dev/fdt/hiclock.c +++ b/sys/dev/fdt/hiclock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hiclock.c,v 1.2 2019/04/22 12:43:13 kettenis Exp $ */ +/* $OpenBSD: hiclock.c,v 1.3 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2018, 2019 Mark Kettenis * @@ -52,7 +52,7 @@ struct hiclock_softc { int hiclock_match(struct device *, void *, void *); void hiclock_attach(struct device *, struct device *, void *); -struct cfattach hiclock_ca = { +const struct cfattach hiclock_ca = { sizeof (struct hiclock_softc), hiclock_match, hiclock_attach }; diff --git a/sys/dev/fdt/hidwusb.c b/sys/dev/fdt/hidwusb.c index 71f7a261c6b..002a69d029a 100644 --- a/sys/dev/fdt/hidwusb.c +++ b/sys/dev/fdt/hidwusb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hidwusb.c,v 1.2 2019/08/29 11:51:48 kettenis Exp $ */ +/* $OpenBSD: hidwusb.c,v 1.3 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2017, 2018 Mark Kettenis * @@ -43,7 +43,7 @@ struct hidwusb_softc { int hidwusb_match(struct device *, void *, void *); void hidwusb_attach(struct device *, struct device *, void *); -struct cfattach hidwusb_ca = { +const struct cfattach hidwusb_ca = { sizeof(struct hidwusb_softc), hidwusb_match, hidwusb_attach }; diff --git a/sys/dev/fdt/hireset.c b/sys/dev/fdt/hireset.c index 1be7086415c..7f72bebca0a 100644 --- a/sys/dev/fdt/hireset.c +++ b/sys/dev/fdt/hireset.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hireset.c,v 1.1 2018/08/27 14:12:59 kettenis Exp $ */ +/* $OpenBSD: hireset.c,v 1.2 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2018 Mark Kettenis * @@ -38,7 +38,7 @@ struct hireset_softc { int hireset_match(struct device *, void *, void *); void hireset_attach(struct device *, struct device *, void *); -struct cfattach hireset_ca = { +const struct cfattach hireset_ca = { sizeof (struct hireset_softc), hireset_match, hireset_attach }; diff --git a/sys/dev/fdt/hitemp.c b/sys/dev/fdt/hitemp.c index ec67031463d..83790e66055 100644 --- a/sys/dev/fdt/hitemp.c +++ b/sys/dev/fdt/hitemp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hitemp.c,v 1.1 2018/08/27 21:09:47 kettenis Exp $ */ +/* $OpenBSD: hitemp.c,v 1.2 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2018 Mark Kettenis * @@ -54,7 +54,7 @@ struct hitemp_softc { int hitemp_match(struct device *, void *, void *); void hitemp_attach(struct device *, struct device *, void *); -struct cfattach hitemp_ca = { +const struct cfattach hitemp_ca = { sizeof (struct hitemp_softc), hitemp_match, hitemp_attach }; diff --git a/sys/dev/fdt/if_dwge.c b/sys/dev/fdt/if_dwge.c index 70dc8a9cabf..3f2d24a0e6d 100644 --- a/sys/dev/fdt/if_dwge.c +++ b/sys/dev/fdt/if_dwge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_dwge.c,v 1.11 2021/10/22 14:28:54 kettenis Exp $ */ +/* $OpenBSD: if_dwge.c,v 1.12 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2008, 2019 Mark Kettenis * Copyright (c) 2017 Patrick Wildt @@ -275,7 +275,7 @@ void dwge_attach(struct device *, struct device *, void *); void dwge_setup_allwinner(struct dwge_softc *); void dwge_setup_rockchip(struct dwge_softc *); -struct cfattach dwge_ca = { +const struct cfattach dwge_ca = { sizeof(struct dwge_softc), dwge_match, dwge_attach }; diff --git a/sys/dev/fdt/if_dwxe.c b/sys/dev/fdt/if_dwxe.c index c692826cba6..b1f881f0d02 100644 --- a/sys/dev/fdt/if_dwxe.c +++ b/sys/dev/fdt/if_dwxe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_dwxe.c,v 1.18 2020/12/12 11:48:52 jan Exp $ */ +/* $OpenBSD: if_dwxe.c,v 1.19 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2008 Mark Kettenis * Copyright (c) 2017 Patrick Wildt @@ -310,7 +310,7 @@ void dwxe_attach(struct device *, struct device *, void *); void dwxe_phy_setup_emac(struct dwxe_softc *); void dwxe_phy_setup_gmac(struct dwxe_softc *); -struct cfattach dwxe_ca = { +const struct cfattach dwxe_ca = { sizeof(struct dwxe_softc), dwxe_match, dwxe_attach }; diff --git a/sys/dev/fdt/if_fec.c b/sys/dev/fdt/if_fec.c index 100416f3ac1..61d6e024739 100644 --- a/sys/dev/fdt/if_fec.c +++ b/sys/dev/fdt/if_fec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_fec.c,v 1.11 2020/12/12 11:48:52 jan Exp $ */ +/* $OpenBSD: if_fec.c,v 1.12 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2012-2013,2019 Patrick Wildt * @@ -269,7 +269,7 @@ void fec_dmamem_free(struct fec_softc *, struct fec_dmamem *); struct mbuf *fec_alloc_mbuf(struct fec_softc *, bus_dmamap_t); void fec_fill_rx_ring(struct fec_softc *); -struct cfattach fec_ca = { +const struct cfattach fec_ca = { sizeof (struct fec_softc), fec_match, fec_attach }; diff --git a/sys/dev/fdt/if_mvneta.c b/sys/dev/fdt/if_mvneta.c index a4c8c56b5ce..3a871883ab0 100644 --- a/sys/dev/fdt/if_mvneta.c +++ b/sys/dev/fdt/if_mvneta.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_mvneta.c,v 1.16 2020/12/12 11:48:52 jan Exp $ */ +/* $OpenBSD: if_mvneta.c,v 1.17 2021/10/24 17:52:26 mpi Exp $ */ /* $NetBSD: if_mvneta.c,v 1.41 2015/04/15 10:15:40 hsuenaga Exp $ */ /* * Copyright (c) 2007, 2008, 2013 KIYOHARA Takashi @@ -216,7 +216,7 @@ struct cfdriver mvneta_cd = { NULL, "mvneta", DV_IFNET }; -struct cfattach mvneta_ca = { +const struct cfattach mvneta_ca = { sizeof (struct mvneta_softc), mvneta_match, mvneta_attach, }; diff --git a/sys/dev/fdt/imxanatop.c b/sys/dev/fdt/imxanatop.c index 30475b935f2..9936a52274a 100644 --- a/sys/dev/fdt/imxanatop.c +++ b/sys/dev/fdt/imxanatop.c @@ -1,4 +1,4 @@ -/* $OpenBSD: imxanatop.c,v 1.5 2018/08/30 12:14:30 jsg Exp $ */ +/* $OpenBSD: imxanatop.c,v 1.6 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2016 Mark Kettenis * @@ -125,7 +125,7 @@ struct imxanatop_regulator { int imxanatop_match(struct device *, void *, void *); void imxanatop_attach(struct device *, struct device *, void *); -struct cfattach imxanatop_ca = { +const struct cfattach imxanatop_ca = { sizeof(struct imxanatop_softc), imxanatop_match, imxanatop_attach }; diff --git a/sys/dev/fdt/imxccm.c b/sys/dev/fdt/imxccm.c index c57ce40bdb8..75eaf54f3fc 100644 --- a/sys/dev/fdt/imxccm.c +++ b/sys/dev/fdt/imxccm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: imxccm.c,v 1.26 2020/12/19 01:18:11 patrick Exp $ */ +/* $OpenBSD: imxccm.c,v 1.27 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2012-2013 Patrick Wildt * @@ -227,7 +227,7 @@ struct imxccm_softc { int imxccm_match(struct device *, void *, void *); void imxccm_attach(struct device *parent, struct device *self, void *args); -struct cfattach imxccm_ca = { +const struct cfattach imxccm_ca = { sizeof (struct imxccm_softc), imxccm_match, imxccm_attach }; diff --git a/sys/dev/fdt/imxesdhc.c b/sys/dev/fdt/imxesdhc.c index 8306ebcf0ad..de3ca238751 100644 --- a/sys/dev/fdt/imxesdhc.c +++ b/sys/dev/fdt/imxesdhc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: imxesdhc.c,v 1.16 2020/04/28 17:22:53 patrick Exp $ */ +/* $OpenBSD: imxesdhc.c,v 1.17 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2009 Dale Rahn * Copyright (c) 2006 Uwe Stuehler @@ -275,7 +275,7 @@ struct cfdriver imxesdhc_cd = { NULL, "imxesdhc", DV_DULL }; -struct cfattach imxesdhc_ca = { +const struct cfattach imxesdhc_ca = { sizeof(struct imxesdhc_softc), imxesdhc_match, imxesdhc_attach }; diff --git a/sys/dev/fdt/imxgpc.c b/sys/dev/fdt/imxgpc.c index ce9e3974d61..36eba9896a7 100644 --- a/sys/dev/fdt/imxgpc.c +++ b/sys/dev/fdt/imxgpc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: imxgpc.c,v 1.9 2020/12/18 16:26:21 patrick Exp $ */ +/* $OpenBSD: imxgpc.c,v 1.10 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2016 Mark Kettenis * @@ -43,7 +43,7 @@ int imxgpc_match(struct device *, void *, void *); void imxgpc_attach(struct device *, struct device *, void *); void imxgpc_enable(void *, uint32_t *, int); -struct cfattach imxgpc_ca = { +const struct cfattach imxgpc_ca = { sizeof(struct imxgpc_softc), imxgpc_match, imxgpc_attach }; diff --git a/sys/dev/fdt/imxgpio.c b/sys/dev/fdt/imxgpio.c index 4da86aad524..86ba12bd2d8 100644 --- a/sys/dev/fdt/imxgpio.c +++ b/sys/dev/fdt/imxgpio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: imxgpio.c,v 1.5 2020/07/17 08:07:34 patrick Exp $ */ +/* $OpenBSD: imxgpio.c,v 1.6 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2007,2009 Dale Rahn * Copyright (c) 2012-2013 Patrick Wildt @@ -87,7 +87,7 @@ void imxgpio_intr_disable(void *); void imxgpio_intr_barrier(void *); -struct cfattach imxgpio_ca = { +const struct cfattach imxgpio_ca = { sizeof (struct imxgpio_softc), imxgpio_match, imxgpio_attach }; diff --git a/sys/dev/fdt/imxiomuxc.c b/sys/dev/fdt/imxiomuxc.c index 1f522c434a3..e4c19fe34f6 100644 --- a/sys/dev/fdt/imxiomuxc.c +++ b/sys/dev/fdt/imxiomuxc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: imxiomuxc.c,v 1.6 2021/07/08 13:20:26 patrick Exp $ */ +/* $OpenBSD: imxiomuxc.c,v 1.7 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2013 Patrick Wildt * Copyright (c) 2016 Mark Kettenis @@ -49,7 +49,7 @@ struct imxiomuxc_softc *imxiomuxc_sc; int imxiomuxc_match(struct device *, void *, void *); void imxiomuxc_attach(struct device *, struct device *, void *); -struct cfattach imxiomuxc_ca = { +const struct cfattach imxiomuxc_ca = { sizeof (struct imxiomuxc_softc), imxiomuxc_match, imxiomuxc_attach }; diff --git a/sys/dev/fdt/imxrtc.c b/sys/dev/fdt/imxrtc.c index 1ae4f240810..c68e35bb287 100644 --- a/sys/dev/fdt/imxrtc.c +++ b/sys/dev/fdt/imxrtc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: imxrtc.c,v 1.1 2018/06/16 14:11:35 kettenis Exp $ */ +/* $OpenBSD: imxrtc.c,v 1.2 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2018 Mark Kettenis * @@ -53,7 +53,7 @@ struct imxrtc_softc { int imxrtc_match(struct device *, void *, void *); void imxrtc_attach(struct device *, struct device *, void *); -struct cfattach imxrtc_ca = { +const struct cfattach imxrtc_ca = { sizeof (struct imxrtc_softc), imxrtc_match, imxrtc_attach }; diff --git a/sys/dev/fdt/imxspi.c b/sys/dev/fdt/imxspi.c index 05015f878ef..425c3cba968 100644 --- a/sys/dev/fdt/imxspi.c +++ b/sys/dev/fdt/imxspi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: imxspi.c,v 1.1 2018/07/26 10:59:07 patrick Exp $ */ +/* $OpenBSD: imxspi.c,v 1.2 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2018 Patrick Wildt * @@ -127,7 +127,7 @@ void imxspi_scan(struct imxspi_softc *); #define HCLR4(sc, reg, bits) \ HWRITE4((sc), (reg), HREAD4((sc), (reg)) & ~(bits)) -struct cfattach imxspi_ca = { +const struct cfattach imxspi_ca = { sizeof(struct imxspi_softc), imxspi_match, imxspi_attach, imxspi_detach }; diff --git a/sys/dev/fdt/imxsrc.c b/sys/dev/fdt/imxsrc.c index d71fc8aecff..3bee1a00c6f 100644 --- a/sys/dev/fdt/imxsrc.c +++ b/sys/dev/fdt/imxsrc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: imxsrc.c,v 1.4 2019/10/27 19:19:10 kettenis Exp $ */ +/* $OpenBSD: imxsrc.c,v 1.5 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2019 Patrick Wildt * @@ -111,7 +111,7 @@ int imxsrc_match(struct device *, void *, void *); void imxsrc_attach(struct device *, struct device *, void *); void imxsrc_reset(void *, uint32_t *, int); -struct cfattach imxsrc_ca = { +const struct cfattach imxsrc_ca = { sizeof (struct imxsrc_softc), imxsrc_match, imxsrc_attach }; diff --git a/sys/dev/fdt/imxtmu.c b/sys/dev/fdt/imxtmu.c index b796b0fad86..0b98620710c 100644 --- a/sys/dev/fdt/imxtmu.c +++ b/sys/dev/fdt/imxtmu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: imxtmu.c,v 1.2 2020/03/20 09:13:03 patrick Exp $ */ +/* $OpenBSD: imxtmu.c,v 1.3 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2018 Patrick Wildt * @@ -77,7 +77,7 @@ void imxtmu_attach(struct device *, struct device *, void *); void imxtmu_mm_refresh_sensors(void *); void imxtmu_mq_refresh_sensors(void *); -struct cfattach imxtmu_ca = { +const struct cfattach imxtmu_ca = { sizeof(struct imxtmu_softc), imxtmu_match, imxtmu_attach }; diff --git a/sys/dev/fdt/imxuart.c b/sys/dev/fdt/imxuart.c index 20b49205ca7..03031aaa769 100644 --- a/sys/dev/fdt/imxuart.c +++ b/sys/dev/fdt/imxuart.c @@ -1,4 +1,4 @@ -/* $OpenBSD: imxuart.c,v 1.11 2021/09/01 09:29:31 jan Exp $ */ +/* $OpenBSD: imxuart.c,v 1.12 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2005 Dale Rahn * @@ -114,7 +114,7 @@ struct cfdriver imxuart_cd = { NULL, "imxuart", DV_TTY }; -struct cfattach imxuart_ca = { +const struct cfattach imxuart_ca = { sizeof(struct imxuart_softc), imxuart_match, imxuart_attach }; diff --git a/sys/dev/fdt/moxtet.c b/sys/dev/fdt/moxtet.c index 003d0c52d29..eafaf396fe8 100644 --- a/sys/dev/fdt/moxtet.c +++ b/sys/dev/fdt/moxtet.c @@ -1,4 +1,4 @@ -/* $OpenBSD: moxtet.c,v 1.1 2019/10/07 19:35:07 patrick Exp $ */ +/* $OpenBSD: moxtet.c,v 1.2 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2019 Patrick Wildt * @@ -56,7 +56,7 @@ int moxtet_detach(struct device *, int); int moxtet_read(struct moxtet_softc *, char *, size_t); int moxtet_write(struct moxtet_softc *, char *, size_t); -struct cfattach moxtet_ca = { +const struct cfattach moxtet_ca = { sizeof(struct moxtet_softc), moxtet_match, moxtet_attach, moxtet_detach }; diff --git a/sys/dev/fdt/mvclock.c b/sys/dev/fdt/mvclock.c index caf657fbcde..f5d5e1e077f 100644 --- a/sys/dev/fdt/mvclock.c +++ b/sys/dev/fdt/mvclock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mvclock.c,v 1.8 2020/11/06 13:29:45 patrick Exp $ */ +/* $OpenBSD: mvclock.c,v 1.9 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2018 Mark Kettenis * @@ -48,7 +48,7 @@ struct mvclock_softc { int mvclock_match(struct device *, void *, void *); void mvclock_attach(struct device *, struct device *, void *); -struct cfattach mvclock_ca = { +const struct cfattach mvclock_ca = { sizeof (struct mvclock_softc), mvclock_match, mvclock_attach }; diff --git a/sys/dev/fdt/mvdog.c b/sys/dev/fdt/mvdog.c index cef0bfe1159..f0fba406eb2 100644 --- a/sys/dev/fdt/mvdog.c +++ b/sys/dev/fdt/mvdog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mvdog.c,v 1.1 2019/09/05 18:38:30 patrick Exp $ */ +/* $OpenBSD: mvdog.c,v 1.2 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2019 Patrick Wildt * @@ -52,7 +52,7 @@ struct mvdog_softc { int mvdog_match(struct device *, void *, void *); void mvdog_attach(struct device *, struct device *, void *); -struct cfattach mvdog_ca = { +const struct cfattach mvdog_ca = { sizeof (struct mvdog_softc), mvdog_match, mvdog_attach }; diff --git a/sys/dev/fdt/mvgicp.c b/sys/dev/fdt/mvgicp.c index b2098012beb..a836e9fede9 100644 --- a/sys/dev/fdt/mvgicp.c +++ b/sys/dev/fdt/mvgicp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mvgicp.c,v 1.4 2021/05/17 17:25:13 kettenis Exp $ */ +/* $OpenBSD: mvgicp.c,v 1.5 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2019 Patrick Wildt * @@ -52,7 +52,7 @@ void * mvgicp_intr_establish(void *, uint64_t *, uint64_t *, void mvgicp_intr_disestablish(void *); void mvgicp_intr_barrier(void *); -struct cfattach mvgicp_ca = { +const struct cfattach mvgicp_ca = { sizeof(struct mvgicp_softc), mvgicp_match, mvgicp_attach }; diff --git a/sys/dev/fdt/mvgpio.c b/sys/dev/fdt/mvgpio.c index aae70e55597..7f463e35c87 100644 --- a/sys/dev/fdt/mvgpio.c +++ b/sys/dev/fdt/mvgpio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mvgpio.c,v 1.2 2021/05/07 01:54:17 jsg Exp $ */ +/* $OpenBSD: mvgpio.c,v 1.3 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2018 Mark Kettenis * @@ -54,7 +54,7 @@ struct mvgpio_softc { int mvgpio_match(struct device *, void *, void *); void mvgpio_attach(struct device *, struct device *, void *); -struct cfattach mvgpio_ca = { +const struct cfattach mvgpio_ca = { sizeof (struct mvgpio_softc), mvgpio_match, mvgpio_attach }; diff --git a/sys/dev/fdt/mvicu.c b/sys/dev/fdt/mvicu.c index 49a3b0e5e8f..30d064a15c9 100644 --- a/sys/dev/fdt/mvicu.c +++ b/sys/dev/fdt/mvicu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mvicu.c,v 1.7 2021/05/17 17:25:13 kettenis Exp $ */ +/* $OpenBSD: mvicu.c,v 1.8 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2018 Mark Kettenis * @@ -84,7 +84,7 @@ struct mvicu_softc { int mvicu_match(struct device *, void *, void *); void mvicu_attach(struct device *, struct device *, void *); -struct cfattach mvicu_ca = { +const struct cfattach mvicu_ca = { sizeof (struct mvicu_softc), mvicu_match, mvicu_attach }; diff --git a/sys/dev/fdt/mviic.c b/sys/dev/fdt/mviic.c index 0581f697887..c526d3b8542 100644 --- a/sys/dev/fdt/mviic.c +++ b/sys/dev/fdt/mviic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mviic.c,v 1.3 2021/03/11 09:15:25 patrick Exp $ */ +/* $OpenBSD: mviic.c,v 1.4 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2019 Patrick Wildt * @@ -90,7 +90,7 @@ void mviic_bus_scan(struct device *, struct i2cbus_attach_args *, void *); #define HCLR4(sc, reg, bits) \ HWRITE4((sc), (reg), HREAD4((sc), (reg)) & ~(bits)) -struct cfattach mviic_ca = { +const struct cfattach mviic_ca = { sizeof(struct mviic_softc), mviic_match, mviic_attach, mviic_detach }; diff --git a/sys/dev/fdt/mvmdio.c b/sys/dev/fdt/mvmdio.c index 4057dfbd6c0..914fc03ce82 100644 --- a/sys/dev/fdt/mvmdio.c +++ b/sys/dev/fdt/mvmdio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mvmdio.c,v 1.3 2020/11/28 20:06:05 kettenis Exp $ */ +/* $OpenBSD: mvmdio.c,v 1.4 2021/10/24 17:52:26 mpi Exp $ */ /* $NetBSD: if_mvneta.c,v 1.41 2015/04/15 10:15:40 hsuenaga Exp $ */ /* * Copyright (c) 2007, 2008, 2013 KIYOHARA Takashi @@ -77,7 +77,7 @@ struct cfdriver mvmdio_cd = { NULL, "mvmdio", DV_DULL }; -struct cfattach mvmdio_ca = { +const struct cfattach mvmdio_ca = { sizeof (struct mvmdio_softc), mvmdio_match, mvmdio_attach, }; diff --git a/sys/dev/fdt/mvpinctrl.c b/sys/dev/fdt/mvpinctrl.c index fe4b722a818..f0105c53aac 100644 --- a/sys/dev/fdt/mvpinctrl.c +++ b/sys/dev/fdt/mvpinctrl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mvpinctrl.c,v 1.8 2021/05/07 01:54:17 jsg Exp $ */ +/* $OpenBSD: mvpinctrl.c,v 1.9 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2013,2016 Patrick Wildt * Copyright (c) 2016 Mark Kettenis @@ -74,7 +74,7 @@ void mvpinctrl_set_pin(void *, uint32_t *, int); uint32_t a3700_xtal_get_frequency(void *, uint32_t *); -struct cfattach mvpinctrl_ca = { +const struct cfattach mvpinctrl_ca = { sizeof (struct mvpinctrl_softc), mvpinctrl_match, mvpinctrl_attach }; diff --git a/sys/dev/fdt/mvrng.c b/sys/dev/fdt/mvrng.c index 8f2dcef2e60..0490e05bee6 100644 --- a/sys/dev/fdt/mvrng.c +++ b/sys/dev/fdt/mvrng.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mvrng.c,v 1.3 2020/05/29 04:42:25 deraadt Exp $ */ +/* $OpenBSD: mvrng.c,v 1.4 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2018 Mark Kettenis * @@ -65,7 +65,7 @@ struct mvrng_softc { int mvrng_match(struct device *, void *, void *); void mvrng_attach(struct device *, struct device *, void *); -struct cfattach mvrng_ca = { +const struct cfattach mvrng_ca = { sizeof (struct mvrng_softc), mvrng_match, mvrng_attach }; diff --git a/sys/dev/fdt/mvrtc.c b/sys/dev/fdt/mvrtc.c index b5450720ac3..535744c8992 100644 --- a/sys/dev/fdt/mvrtc.c +++ b/sys/dev/fdt/mvrtc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mvrtc.c,v 1.1 2018/03/29 18:20:52 kettenis Exp $ */ +/* $OpenBSD: mvrtc.c,v 1.2 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2018 Mark Kettenis * @@ -60,7 +60,7 @@ struct mvrtc_softc { int mvrtc_match(struct device *, void *, void *); void mvrtc_attach(struct device *, struct device *, void *); -struct cfattach mvrtc_ca = { +const struct cfattach mvrtc_ca = { sizeof (struct mvrtc_softc), mvrtc_match, mvrtc_attach }; diff --git a/sys/dev/fdt/mvspi.c b/sys/dev/fdt/mvspi.c index bbd32aa4bbd..4731e349f3e 100644 --- a/sys/dev/fdt/mvspi.c +++ b/sys/dev/fdt/mvspi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mvspi.c,v 1.1 2019/10/07 19:30:12 patrick Exp $ */ +/* $OpenBSD: mvspi.c,v 1.2 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2019 Patrick Wildt * @@ -86,7 +86,7 @@ void mvspi_scan(struct mvspi_softc *); #define HCLR4(sc, reg, bits) \ HWRITE4((sc), (reg), HREAD4((sc), (reg)) & ~(bits)) -struct cfattach mvspi_ca = { +const struct cfattach mvspi_ca = { sizeof(struct mvspi_softc), mvspi_match, mvspi_attach, mvspi_detach }; diff --git a/sys/dev/fdt/mvtemp.c b/sys/dev/fdt/mvtemp.c index d6112f71d03..07cd50ac982 100644 --- a/sys/dev/fdt/mvtemp.c +++ b/sys/dev/fdt/mvtemp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mvtemp.c,v 1.1 2018/03/31 16:35:15 kettenis Exp $ */ +/* $OpenBSD: mvtemp.c,v 1.2 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2018 Mark Kettenis * @@ -50,7 +50,7 @@ struct mvtemp_softc { int mvtemp_match(struct device *, void *, void *); void mvtemp_attach(struct device *, struct device *, void *); -struct cfattach mvtemp_ca = { +const struct cfattach mvtemp_ca = { sizeof (struct mvtemp_softc), mvtemp_match, mvtemp_attach }; diff --git a/sys/dev/fdt/mvuart.c b/sys/dev/fdt/mvuart.c index 52cc8b98b74..0da05066dc5 100644 --- a/sys/dev/fdt/mvuart.c +++ b/sys/dev/fdt/mvuart.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mvuart.c,v 1.3 2021/08/31 12:24:15 jan Exp $ */ +/* $OpenBSD: mvuart.c,v 1.4 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2005 Dale Rahn * Copyright (c) 2018 Patrick Wildt @@ -117,7 +117,7 @@ struct cfdriver mvuart_cd = { NULL, "mvuart", DV_TTY }; -struct cfattach mvuart_ca = { +const struct cfattach mvuart_ca = { sizeof(struct mvuart_softc), mvuart_match, mvuart_attach }; diff --git a/sys/dev/fdt/ohci_fdt.c b/sys/dev/fdt/ohci_fdt.c index 4f3c0ae683b..083b37b6f52 100644 --- a/sys/dev/fdt/ohci_fdt.c +++ b/sys/dev/fdt/ohci_fdt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ohci_fdt.c,v 1.2 2019/01/07 03:41:06 dlg Exp $ */ +/* $OpenBSD: ohci_fdt.c,v 1.3 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2005, 2019 David Gwynne @@ -50,7 +50,7 @@ int ohci_fdt_match(struct device *, void *, void *); void ohci_fdt_attach(struct device *, struct device *, void *); int ohci_fdt_detach(struct device *, int); -struct cfattach ohci_fdt_ca = { +const struct cfattach ohci_fdt_ca = { sizeof(struct ohci_fdt_softc), ohci_fdt_match, ohci_fdt_attach, diff --git a/sys/dev/fdt/pinctrl.c b/sys/dev/fdt/pinctrl.c index 0675b13fb48..8ff4dbb1adf 100644 --- a/sys/dev/fdt/pinctrl.c +++ b/sys/dev/fdt/pinctrl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pinctrl.c,v 1.4 2021/02/01 14:30:01 jsg Exp $ */ +/* $OpenBSD: pinctrl.c,v 1.5 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2018, 2019 Mark Kettenis * @@ -51,7 +51,7 @@ struct pinctrl_softc { int pinctrl_match(struct device *, void *, void *); void pinctrl_attach(struct device *, struct device *, void *); -struct cfattach pinctrl_ca = { +const struct cfattach pinctrl_ca = { sizeof (struct pinctrl_softc), pinctrl_match, pinctrl_attach }; diff --git a/sys/dev/fdt/plgpio.c b/sys/dev/fdt/plgpio.c index b72198cd58e..f69a13846de 100644 --- a/sys/dev/fdt/plgpio.c +++ b/sys/dev/fdt/plgpio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: plgpio.c,v 1.2 2021/05/07 01:54:17 jsg Exp $ */ +/* $OpenBSD: plgpio.c,v 1.3 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2018 Mark Kettenis * @@ -51,7 +51,7 @@ struct plgpio_softc { int plgpio_match(struct device *, void *, void *); void plgpio_attach(struct device *, struct device *, void *); -struct cfattach plgpio_ca = { +const struct cfattach plgpio_ca = { sizeof (struct plgpio_softc), plgpio_match, plgpio_attach }; diff --git a/sys/dev/fdt/plrtc.c b/sys/dev/fdt/plrtc.c index 1a51440d078..5f5d785e397 100644 --- a/sys/dev/fdt/plrtc.c +++ b/sys/dev/fdt/plrtc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: plrtc.c,v 1.1 2017/01/25 10:14:40 jsg Exp $ */ +/* $OpenBSD: plrtc.c,v 1.2 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2015 Jonathan Gray @@ -53,7 +53,7 @@ int plrtc_gettime(struct todr_chip_handle *, struct timeval *); int plrtc_settime(struct todr_chip_handle *, struct timeval *); -struct cfattach plrtc_ca = { +const struct cfattach plrtc_ca = { sizeof(struct plrtc_softc), plrtc_match, plrtc_attach }; diff --git a/sys/dev/fdt/pluart_fdt.c b/sys/dev/fdt/pluart_fdt.c index a9a03bd8ca7..7f17365f1d6 100644 --- a/sys/dev/fdt/pluart_fdt.c +++ b/sys/dev/fdt/pluart_fdt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pluart_fdt.c,v 1.3 2019/04/22 10:18:20 kettenis Exp $ */ +/* $OpenBSD: pluart_fdt.c,v 1.4 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2014 Patrick Wildt * Copyright (c) 2005 Dale Rahn @@ -32,7 +32,7 @@ int pluart_fdt_match(struct device *, void *, void *); void pluart_fdt_attach(struct device *, struct device *, void *); -struct cfattach pluart_fdt_ca = { +const struct cfattach pluart_fdt_ca = { sizeof(struct pluart_softc), pluart_fdt_match, pluart_fdt_attach }; diff --git a/sys/dev/fdt/psci.c b/sys/dev/fdt/psci.c index 26c328f47eb..df9b0df1655 100644 --- a/sys/dev/fdt/psci.c +++ b/sys/dev/fdt/psci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: psci.c,v 1.9 2021/10/10 16:20:37 kettenis Exp $ */ +/* $OpenBSD: psci.c,v 1.10 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2016 Jonathan Gray @@ -73,7 +73,7 @@ int32_t smccc_arch_features(uint32_t); uint32_t psci_version(void); int32_t psci_features(uint32_t); -struct cfattach psci_ca = { +const struct cfattach psci_ca = { sizeof(struct psci_softc), psci_match, psci_attach }; diff --git a/sys/dev/fdt/pwmbl.c b/sys/dev/fdt/pwmbl.c index c5fed29d894..51e279fa703 100644 --- a/sys/dev/fdt/pwmbl.c +++ b/sys/dev/fdt/pwmbl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pwmbl.c,v 1.5 2020/06/10 23:36:26 patrick Exp $ */ +/* $OpenBSD: pwmbl.c,v 1.6 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2019 Krystian Lewandowski * Copyright (c) 2019 Mark Kettenis @@ -46,7 +46,7 @@ struct pwmbl_softc *sc_pwmbl; int pwmbl_match(struct device *, void *, void *); void pwmbl_attach(struct device *, struct device *, void *); -struct cfattach pwmbl_ca = { +const struct cfattach pwmbl_ca = { sizeof(struct pwmbl_softc), pwmbl_match, pwmbl_attach }; diff --git a/sys/dev/fdt/pwmfan.c b/sys/dev/fdt/pwmfan.c index 261d6752bb3..fde0290727e 100644 --- a/sys/dev/fdt/pwmfan.c +++ b/sys/dev/fdt/pwmfan.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pwmfan.c,v 1.1 2019/12/03 09:12:45 patrick Exp $ */ +/* $OpenBSD: pwmfan.c,v 1.2 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2019 Krystian Lewandowski * Copyright (c) 2019 Mark Kettenis @@ -44,7 +44,7 @@ struct pwmfan_softc { int pwmfan_match(struct device *, void *, void *); void pwmfan_attach(struct device *, struct device *, void *); -struct cfattach pwmfan_ca = { +const struct cfattach pwmfan_ca = { sizeof(struct pwmfan_softc), pwmfan_match, pwmfan_attach }; diff --git a/sys/dev/fdt/pwmreg.c b/sys/dev/fdt/pwmreg.c index 2b63284ed34..b88f36120cc 100644 --- a/sys/dev/fdt/pwmreg.c +++ b/sys/dev/fdt/pwmreg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pwmreg.c,v 1.1 2019/09/30 20:44:13 kettenis Exp $ */ +/* $OpenBSD: pwmreg.c,v 1.2 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2019 Mark Kettenis * @@ -41,7 +41,7 @@ struct pwmreg_softc { int pwmreg_match(struct device *, void *, void *); void pwmreg_attach(struct device *, struct device *, void *); -struct cfattach pwmreg_ca = { +const struct cfattach pwmreg_ca = { sizeof (struct pwmreg_softc), pwmreg_match, pwmreg_attach }; diff --git a/sys/dev/fdt/rkclock.c b/sys/dev/fdt/rkclock.c index 317f7680e46..2066722c355 100644 --- a/sys/dev/fdt/rkclock.c +++ b/sys/dev/fdt/rkclock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rkclock.c,v 1.58 2021/07/28 13:39:39 patrick Exp $ */ +/* $OpenBSD: rkclock.c,v 1.59 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2017, 2018 Mark Kettenis * @@ -212,7 +212,7 @@ struct rkclock_softc { int rkclock_match(struct device *, void *, void *); void rkclock_attach(struct device *, struct device *, void *); -struct cfattach rkclock_ca = { +const struct cfattach rkclock_ca = { sizeof (struct rkclock_softc), rkclock_match, rkclock_attach }; diff --git a/sys/dev/fdt/rkdwusb.c b/sys/dev/fdt/rkdwusb.c index 7bf2947013d..7cb99c7d096 100644 --- a/sys/dev/fdt/rkdwusb.c +++ b/sys/dev/fdt/rkdwusb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rkdwusb.c,v 1.3 2019/08/29 11:51:48 kettenis Exp $ */ +/* $OpenBSD: rkdwusb.c,v 1.4 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2017 Mark Kettenis * @@ -35,7 +35,7 @@ struct rkdwusb_softc { int rkdwusb_match(struct device *, void *, void *); void rkdwusb_attach(struct device *, struct device *, void *); -struct cfattach rkdwusb_ca = { +const struct cfattach rkdwusb_ca = { sizeof(struct rkdwusb_softc), rkdwusb_match, rkdwusb_attach }; diff --git a/sys/dev/fdt/rkemmcphy.c b/sys/dev/fdt/rkemmcphy.c index 229108c5af0..b62bd133fcc 100644 --- a/sys/dev/fdt/rkemmcphy.c +++ b/sys/dev/fdt/rkemmcphy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rkemmcphy.c,v 1.3 2020/04/03 22:03:45 kettenis Exp $ */ +/* $OpenBSD: rkemmcphy.c,v 1.4 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2019 Patrick Wildt * @@ -75,7 +75,7 @@ struct rkemmcphy_softc { int rkemmcphy_match(struct device *, void *, void *); void rkemmcphy_attach(struct device *, struct device *, void *); -struct cfattach rkemmcphy_ca = { +const struct cfattach rkemmcphy_ca = { sizeof (struct rkemmcphy_softc), rkemmcphy_match, rkemmcphy_attach }; diff --git a/sys/dev/fdt/rkgpio.c b/sys/dev/fdt/rkgpio.c index 4b31efd13e7..1fed8fe9078 100644 --- a/sys/dev/fdt/rkgpio.c +++ b/sys/dev/fdt/rkgpio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rkgpio.c,v 1.6 2020/07/17 08:07:34 patrick Exp $ */ +/* $OpenBSD: rkgpio.c,v 1.7 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2017 Mark Kettenis * Copyright (c) 2019 Patrick Wildt @@ -83,7 +83,7 @@ struct rkgpio_softc { int rkgpio_match(struct device *, void *, void *); void rkgpio_attach(struct device *, struct device *, void *); -struct cfattach rkgpio_ca = { +const struct cfattach rkgpio_ca = { sizeof (struct rkgpio_softc), rkgpio_match, rkgpio_attach }; diff --git a/sys/dev/fdt/rkgrf.c b/sys/dev/fdt/rkgrf.c index 48085f092de..b5ede2891f8 100644 --- a/sys/dev/fdt/rkgrf.c +++ b/sys/dev/fdt/rkgrf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rkgrf.c,v 1.4 2020/09/04 01:10:29 jmatthew Exp $ */ +/* $OpenBSD: rkgrf.c,v 1.5 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2017 Mark Kettenis * @@ -42,7 +42,7 @@ struct rkgrf_softc { int rkgrf_match(struct device *, void *, void *); void rkgrf_attach(struct device *, struct device *, void *); -struct cfattach rkgrf_ca = { +const struct cfattach rkgrf_ca = { sizeof (struct rkgrf_softc), rkgrf_match, rkgrf_attach }; diff --git a/sys/dev/fdt/rkiic.c b/sys/dev/fdt/rkiic.c index ef4557090f5..ab07e951aea 100644 --- a/sys/dev/fdt/rkiic.c +++ b/sys/dev/fdt/rkiic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rkiic.c,v 1.6 2021/03/11 08:55:59 patrick Exp $ */ +/* $OpenBSD: rkiic.c,v 1.7 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2017 Mark Kettenis * @@ -88,7 +88,7 @@ struct rkiic_softc { int rkiic_match(struct device *, void *, void *); void rkiic_attach(struct device *, struct device *, void *); -struct cfattach rkiic_ca = { +const struct cfattach rkiic_ca = { sizeof (struct rkiic_softc), rkiic_match, rkiic_attach }; diff --git a/sys/dev/fdt/rkpcie.c b/sys/dev/fdt/rkpcie.c index 9d8d98429a7..45432bcf581 100644 --- a/sys/dev/fdt/rkpcie.c +++ b/sys/dev/fdt/rkpcie.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rkpcie.c,v 1.14 2021/05/17 17:25:13 kettenis Exp $ */ +/* $OpenBSD: rkpcie.c,v 1.15 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2018 Mark Kettenis * @@ -113,7 +113,7 @@ struct rkpcie_softc { int rkpcie_match(struct device *, void *, void *); void rkpcie_attach(struct device *, struct device *, void *); -struct cfattach rkpcie_ca = { +const struct cfattach rkpcie_ca = { sizeof (struct rkpcie_softc), rkpcie_match, rkpcie_attach }; diff --git a/sys/dev/fdt/rkpinctrl.c b/sys/dev/fdt/rkpinctrl.c index 6862f9b88e0..2226c91bd42 100644 --- a/sys/dev/fdt/rkpinctrl.c +++ b/sys/dev/fdt/rkpinctrl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rkpinctrl.c,v 1.6 2020/09/04 01:11:16 jmatthew Exp $ */ +/* $OpenBSD: rkpinctrl.c,v 1.7 2021/10/24 17:52:26 mpi Exp $ */ /* * Copyright (c) 2017, 2018 Mark Kettenis * @@ -59,7 +59,7 @@ struct rkpinctrl_softc { int rkpinctrl_match(struct device *, void *, void *); void rkpinctrl_attach(struct device *, struct device *, void *); -struct cfattach rkpinctrl_ca = { +const struct cfattach rkpinctrl_ca = { sizeof (struct rkpinctrl_softc), rkpinctrl_match, rkpinctrl_attach }; diff --git a/sys/dev/fdt/rkpmic.c b/sys/dev/fdt/rkpmic.c index 3589f135138..cbda91d3258 100644 --- a/sys/dev/fdt/rkpmic.c +++ b/sys/dev/fdt/rkpmic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rkpmic.c,v 1.8 2021/03/08 12:53:35 kurt Exp $ */ +/* $OpenBSD: rkpmic.c,v 1.9 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2017 Mark Kettenis * @@ -242,7 +242,7 @@ struct rkpmic_softc { int rkpmic_match(struct device *, void *, void *); void rkpmic_attach(struct device *, struct device *, void *); -struct cfattach rkpmic_ca = { +const struct cfattach rkpmic_ca = { sizeof(struct rkpmic_softc), rkpmic_match, rkpmic_attach }; diff --git a/sys/dev/fdt/rkpwm.c b/sys/dev/fdt/rkpwm.c index f95edeaf158..a632569fc81 100644 --- a/sys/dev/fdt/rkpwm.c +++ b/sys/dev/fdt/rkpwm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rkpwm.c,v 1.3 2021/08/02 18:22:41 patrick Exp $ */ +/* $OpenBSD: rkpwm.c,v 1.4 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2019 Krystian Lewandowski * Copyright (c) 2019 Patrick Wildt @@ -62,7 +62,7 @@ struct rkpwm_softc { int rkpwm_match(struct device *, void *, void *); void rkpwm_attach(struct device *, struct device *, void *); -struct cfattach rkpwm_ca = { +const struct cfattach rkpwm_ca = { sizeof(struct rkpwm_softc), rkpwm_match, rkpwm_attach }; diff --git a/sys/dev/fdt/rktemp.c b/sys/dev/fdt/rktemp.c index 7e07580e2c4..53ac310f6f8 100644 --- a/sys/dev/fdt/rktemp.c +++ b/sys/dev/fdt/rktemp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rktemp.c,v 1.6 2020/09/08 01:29:58 jmatthew Exp $ */ +/* $OpenBSD: rktemp.c,v 1.7 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2017 Mark Kettenis * @@ -214,7 +214,7 @@ struct rktemp_softc { int rktemp_match(struct device *, void *, void *); void rktemp_attach(struct device *, struct device *, void *); -struct cfattach rktemp_ca = { +const struct cfattach rktemp_ca = { sizeof (struct rktemp_softc), rktemp_match, rktemp_attach }; diff --git a/sys/dev/fdt/sdhc_fdt.c b/sys/dev/fdt/sdhc_fdt.c index 6cc8beaaed4..2ca87570633 100644 --- a/sys/dev/fdt/sdhc_fdt.c +++ b/sys/dev/fdt/sdhc_fdt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sdhc_fdt.c,v 1.17 2021/09/11 22:42:12 mglocker Exp $ */ +/* $OpenBSD: sdhc_fdt.c,v 1.18 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2017 Mark Kettenis * @@ -110,7 +110,7 @@ struct sdhc_fdt_softc { int sdhc_fdt_match(struct device *, void *, void *); void sdhc_fdt_attach(struct device *, struct device *, void *); -struct cfattach sdhc_fdt_ca = { +const struct cfattach sdhc_fdt_ca = { sizeof(struct sdhc_fdt_softc), sdhc_fdt_match, sdhc_fdt_attach }; diff --git a/sys/dev/fdt/sfp.c b/sys/dev/fdt/sfp.c index 92c9ad513ed..d218c0f1c0e 100644 --- a/sys/dev/fdt/sfp.c +++ b/sys/dev/fdt/sfp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sfp.c,v 1.4 2020/11/10 19:08:43 kettenis Exp $ */ +/* $OpenBSD: sfp.c,v 1.5 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2019 Patrick Wildt * @@ -52,7 +52,7 @@ int sfp_get_gpio(struct sfp_softc *, const char *, uint32_t **); int sfp_gpio_enable(void *, int); int sfp_i2c_get_sffpage(void *, struct if_sffpage *); -struct cfattach sfp_ca = { +const struct cfattach sfp_ca = { sizeof(struct sfp_softc), sfp_match, sfp_attach, sfp_detach, }; diff --git a/sys/dev/fdt/simplefb.c b/sys/dev/fdt/simplefb.c index e1d1cf2a1f5..64439f5a170 100644 --- a/sys/dev/fdt/simplefb.c +++ b/sys/dev/fdt/simplefb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: simplefb.c,v 1.13 2021/03/13 14:02:02 kettenis Exp $ */ +/* $OpenBSD: simplefb.c,v 1.14 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2016 Mark Kettenis * @@ -81,7 +81,7 @@ struct wsdisplay_charcell simplefb_bs[SIMPLEFB_WIDTH * SIMPLEFB_HEIGHT]; int simplefb_match(struct device *, void *, void *); void simplefb_attach(struct device *, struct device *, void *); -struct cfattach simplefb_ca = { +const struct cfattach simplefb_ca = { sizeof(struct simplefb_softc), simplefb_match, simplefb_attach }; diff --git a/sys/dev/fdt/simplepanel.c b/sys/dev/fdt/simplepanel.c index 7c9c0657254..ab70134ebe6 100644 --- a/sys/dev/fdt/simplepanel.c +++ b/sys/dev/fdt/simplepanel.c @@ -1,4 +1,4 @@ -/* $OpenBSD: simplepanel.c,v 1.4 2021/07/07 02:38:21 jsg Exp $ */ +/* $OpenBSD: simplepanel.c,v 1.5 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2020 Patrick Wildt * @@ -58,7 +58,7 @@ struct cfattach simplepanel_ca = { simplepanel_match, simplepanel_attach }; -struct cfdriver simplepanel_cd = { +const struct cfdriver simplepanel_cd = { NULL, "simplepanel", DV_DULL }; diff --git a/sys/dev/fdt/ssdfb.c b/sys/dev/fdt/ssdfb.c index 8168d9dcf0e..a457701384f 100644 --- a/sys/dev/fdt/ssdfb.c +++ b/sys/dev/fdt/ssdfb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssdfb.c,v 1.11 2020/05/25 09:55:48 jsg Exp $ */ +/* $OpenBSD: ssdfb.c,v 1.12 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2018 Patrick Wildt * @@ -143,14 +143,14 @@ int ssdfb_copyrows(void *, int, int, int); int ssdfb_eraserows(void *, int, int, uint32_t); int ssdfb_do_cursor(struct rasops_info *); -struct cfattach ssdfb_i2c_ca = { +const struct cfattach ssdfb_i2c_ca = { sizeof(struct ssdfb_softc), ssdfb_i2c_match, ssdfb_i2c_attach, ssdfb_i2c_detach, }; -struct cfattach ssdfb_spi_ca = { +const struct cfattach ssdfb_spi_ca = { sizeof(struct ssdfb_softc), ssdfb_spi_match, ssdfb_spi_attach, diff --git a/sys/dev/fdt/sxiccmu.c b/sys/dev/fdt/sxiccmu.c index 31a8f4a19a4..b27a6408ae9 100644 --- a/sys/dev/fdt/sxiccmu.c +++ b/sys/dev/fdt/sxiccmu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sxiccmu.c,v 1.28 2020/08/30 05:23:49 uaa Exp $ */ +/* $OpenBSD: sxiccmu.c,v 1.29 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2007,2009 Dale Rahn * Copyright (c) 2013 Artturi Alm @@ -75,7 +75,7 @@ struct sxiccmu_softc { int sxiccmu_match(struct device *, void *, void *); void sxiccmu_attach(struct device *, struct device *, void *); -struct cfattach sxiccmu_ca = { +const struct cfattach sxiccmu_ca = { sizeof (struct sxiccmu_softc), sxiccmu_match, sxiccmu_attach }; diff --git a/sys/dev/fdt/sxidog.c b/sys/dev/fdt/sxidog.c index 59c41c1e895..0347f611162 100644 --- a/sys/dev/fdt/sxidog.c +++ b/sys/dev/fdt/sxidog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sxidog.c,v 1.2 2019/10/17 22:26:32 kettenis Exp $ */ +/* $OpenBSD: sxidog.c,v 1.3 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2007,2009 Dale Rahn * @@ -65,7 +65,7 @@ int sxidog_activate(struct device *, int); int sxidog_callback(void *, int); void sxidog_reset(void); -struct cfattach sxidog_ca = { +const struct cfattach sxidog_ca = { sizeof (struct sxidog_softc), sxidog_match, sxidog_attach, NULL, sxidog_activate }; diff --git a/sys/dev/fdt/sximmc.c b/sys/dev/fdt/sximmc.c index 1d6e1ba7132..59aec935826 100644 --- a/sys/dev/fdt/sximmc.c +++ b/sys/dev/fdt/sximmc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sximmc.c,v 1.11 2020/01/11 01:18:29 cheloha Exp $ */ +/* $OpenBSD: sximmc.c,v 1.12 2021/10/24 17:52:27 mpi Exp $ */ /* $NetBSD: awin_mmc.c,v 1.23 2015/11/14 10:32:40 bouyer Exp $ */ /*- @@ -277,7 +277,7 @@ struct cfdriver sximmc_cd = { NULL, "sximmc", DV_DULL }; -struct cfattach sximmc_ca = { +const struct cfattach sximmc_ca = { sizeof(struct sximmc_softc), sximmc_match, sximmc_attach }; diff --git a/sys/dev/fdt/sxipio.c b/sys/dev/fdt/sxipio.c index 71a06222770..a9a2cb503be 100644 --- a/sys/dev/fdt/sxipio.c +++ b/sys/dev/fdt/sxipio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sxipio.c,v 1.13 2021/05/07 01:54:17 jsg Exp $ */ +/* $OpenBSD: sxipio.c,v 1.14 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2010 Miodrag Vallat. * Copyright (c) 2013 Artturi Alm @@ -106,7 +106,7 @@ struct sxipio_softc { int sxipio_match(struct device *, void *, void *); void sxipio_attach(struct device *, struct device *, void *); -struct cfattach sxipio_ca = { +const struct cfattach sxipio_ca = { sizeof (struct sxipio_softc), sxipio_match, sxipio_attach }; diff --git a/sys/dev/fdt/sxipwm.c b/sys/dev/fdt/sxipwm.c index a055604f522..38e80614151 100644 --- a/sys/dev/fdt/sxipwm.c +++ b/sys/dev/fdt/sxipwm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sxipwm.c,v 1.1 2019/10/21 20:52:33 kettenis Exp $ */ +/* $OpenBSD: sxipwm.c,v 1.2 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2019 Krystian Lewandowski * @@ -79,7 +79,7 @@ struct sxipwm_softc { int sxipwm_match(struct device *, void *, void *); void sxipwm_attach(struct device *, struct device *, void *); -struct cfattach sxipwm_ca = { +const struct cfattach sxipwm_ca = { sizeof(struct sxipwm_softc), sxipwm_match, sxipwm_attach }; diff --git a/sys/dev/fdt/sxirsb.c b/sys/dev/fdt/sxirsb.c index 528a40a7a76..c529bbe8b04 100644 --- a/sys/dev/fdt/sxirsb.c +++ b/sys/dev/fdt/sxirsb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sxirsb.c,v 1.3 2019/08/29 11:51:48 kettenis Exp $ */ +/* $OpenBSD: sxirsb.c,v 1.4 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2017 Mark Kettenis * @@ -77,7 +77,7 @@ struct sxirsb_softc { int sxirsb_match(struct device *, void *, void *); void sxirsb_attach(struct device *, struct device *, void *); -struct cfattach sxirsb_ca = { +const struct cfattach sxirsb_ca = { sizeof(struct sxirsb_softc), sxirsb_match, sxirsb_attach }; diff --git a/sys/dev/fdt/sxirtc.c b/sys/dev/fdt/sxirtc.c index b9d397d9e0f..c5eab750c74 100644 --- a/sys/dev/fdt/sxirtc.c +++ b/sys/dev/fdt/sxirtc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sxirtc.c,v 1.5 2021/04/24 10:15:15 mpi Exp $ */ +/* $OpenBSD: sxirtc.c,v 1.6 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2008 Mark Kettenis * Copyright (c) 2013 Artturi Alm @@ -66,7 +66,7 @@ struct sxirtc_softc { int sxirtc_match(struct device *, void *, void *); void sxirtc_attach(struct device *, struct device *, void *); -struct cfattach sxirtc_ca = { +const struct cfattach sxirtc_ca = { sizeof(struct sxirtc_softc), sxirtc_match, sxirtc_attach }; diff --git a/sys/dev/fdt/sxisid.c b/sys/dev/fdt/sxisid.c index bb7abc8b0b5..ed032ea846d 100644 --- a/sys/dev/fdt/sxisid.c +++ b/sys/dev/fdt/sxisid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sxisid.c,v 1.3 2020/05/29 04:42:25 deraadt Exp $ */ +/* $OpenBSD: sxisid.c,v 1.4 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2019 Krystian Lewandowski * Copyright (c) 2019 Mark Kettenis @@ -53,7 +53,7 @@ struct sxisid_softc { int sxisid_match(struct device *, void *, void *); void sxisid_attach(struct device *, struct device *, void *); -struct cfattach sxisid_ca = { +const struct cfattach sxisid_ca = { sizeof(struct sxisid_softc), sxisid_match, sxisid_attach }; diff --git a/sys/dev/fdt/sxisyscon.c b/sys/dev/fdt/sxisyscon.c index 30021d9f6aa..9d547024444 100644 --- a/sys/dev/fdt/sxisyscon.c +++ b/sys/dev/fdt/sxisyscon.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sxisyscon.c,v 1.1 2019/08/11 11:19:41 kettenis Exp $ */ +/* $OpenBSD: sxisyscon.c,v 1.2 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2019 Mark Kettenis * @@ -35,7 +35,7 @@ struct sxisyscon_softc { int sxisyscon_match(struct device *, void *, void *); void sxisyscon_attach(struct device *, struct device *, void *); -struct cfattach sxisyscon_ca = { +const struct cfattach sxisyscon_ca = { sizeof(struct sxisyscon_softc), sxisyscon_match, sxisyscon_attach }; diff --git a/sys/dev/fdt/sxitemp.c b/sys/dev/fdt/sxitemp.c index 19ff0d05f6c..07d95e8dfd8 100644 --- a/sys/dev/fdt/sxitemp.c +++ b/sys/dev/fdt/sxitemp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sxitemp.c,v 1.8 2020/07/15 11:33:12 dtucker Exp $ */ +/* $OpenBSD: sxitemp.c,v 1.9 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2017 Mark Kettenis * @@ -82,7 +82,7 @@ struct sxitemp_softc { int sxitemp_match(struct device *, void *, void *); void sxitemp_attach(struct device *, struct device *, void *); -struct cfattach sxitemp_ca = { +const struct cfattach sxitemp_ca = { sizeof (struct sxitemp_softc), sxitemp_match, sxitemp_attach }; diff --git a/sys/dev/fdt/sxits.c b/sys/dev/fdt/sxits.c index 4a5d183cabe..a08e63fafad 100644 --- a/sys/dev/fdt/sxits.c +++ b/sys/dev/fdt/sxits.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sxits.c,v 1.2 2019/09/21 15:55:29 kettenis Exp $ */ +/* $OpenBSD: sxits.c,v 1.3 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2018 Mark Kettenis * @@ -65,7 +65,7 @@ struct sxits_softc { int sxits_match(struct device *, void *, void *); void sxits_attach(struct device *, struct device *, void *); -struct cfattach sxits_ca = { +const struct cfattach sxits_ca = { sizeof (struct sxits_softc), sxits_match, sxits_attach }; diff --git a/sys/dev/fdt/sxitwi.c b/sys/dev/fdt/sxitwi.c index a7b872b5010..2564f346bbc 100644 --- a/sys/dev/fdt/sxitwi.c +++ b/sys/dev/fdt/sxitwi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sxitwi.c,v 1.13 2021/03/11 09:15:25 patrick Exp $ */ +/* $OpenBSD: sxitwi.c,v 1.14 2021/10/24 17:52:27 mpi Exp $ */ /* $NetBSD: gttwsi_core.c,v 1.2 2014/11/23 13:37:27 jmcneill Exp $ */ /* * Copyright (c) 2008 Eiji Kawauchi. @@ -161,7 +161,7 @@ struct cfdriver sxitwi_cd = { NULL, "sxitwi", DV_DULL }; -struct cfattach sxitwi_ca = { +const struct cfattach sxitwi_ca = { sizeof(struct sxitwi_softc), sxitwi_match, sxitwi_attach }; diff --git a/sys/dev/fdt/sypwr.c b/sys/dev/fdt/sypwr.c index be710a173b2..08b5bedd72c 100644 --- a/sys/dev/fdt/sypwr.c +++ b/sys/dev/fdt/sypwr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sypwr.c,v 1.4 2020/11/12 10:47:07 patrick Exp $ */ +/* $OpenBSD: sypwr.c,v 1.5 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2017 Mark Kettenis * @@ -44,7 +44,7 @@ int sypwr_match(struct device *, void *, void *); void sypwr_attach(struct device *, struct device *, void *); int sypwr_activate(struct device *, int); -struct cfattach sypwr_ca = { +const struct cfattach sypwr_ca = { sizeof(struct sypwr_softc), sypwr_match, sypwr_attach, NULL, sypwr_activate }; diff --git a/sys/dev/fdt/syscon.c b/sys/dev/fdt/syscon.c index acb5e5ab050..314f27667b2 100644 --- a/sys/dev/fdt/syscon.c +++ b/sys/dev/fdt/syscon.c @@ -1,4 +1,4 @@ -/* $OpenBSD: syscon.c,v 1.6 2021/04/23 12:49:53 jsg Exp $ */ +/* $OpenBSD: syscon.c,v 1.7 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2017 Mark Kettenis * @@ -53,7 +53,7 @@ struct syscon_softc *syscon_poweroff_sc; int syscon_match(struct device *, void *, void *); void syscon_attach(struct device *, struct device *, void *); -struct cfattach syscon_ca = { +const struct cfattach syscon_ca = { sizeof(struct syscon_softc), syscon_match, syscon_attach }; diff --git a/sys/dev/fdt/virtio_mmio.c b/sys/dev/fdt/virtio_mmio.c index 9dff7feae40..12f5a6cdeb6 100644 --- a/sys/dev/fdt/virtio_mmio.c +++ b/sys/dev/fdt/virtio_mmio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: virtio_mmio.c,v 1.9 2021/04/15 17:06:59 patrick Exp $ */ +/* $OpenBSD: virtio_mmio.c,v 1.10 2021/10/24 17:52:27 mpi Exp $ */ /* $NetBSD: virtio.c,v 1.3 2011/11/02 23:05:52 njoly Exp $ */ /* @@ -116,7 +116,7 @@ struct virtio_mmio_softc { uint32_t sc_version; }; -struct cfattach virtio_mmio_ca = { +const struct cfattach virtio_mmio_ca = { sizeof(struct virtio_mmio_softc), virtio_mmio_match, virtio_mmio_attach, @@ -124,7 +124,7 @@ struct cfattach virtio_mmio_ca = { NULL }; -struct cfattach virtio_mmio_fdt_ca = { +const struct cfattach virtio_mmio_fdt_ca = { sizeof(struct virtio_mmio_softc), NULL, virtio_mmio_attach, diff --git a/sys/dev/fdt/xhci_fdt.c b/sys/dev/fdt/xhci_fdt.c index fdf76b31439..08e7d0511fa 100644 --- a/sys/dev/fdt/xhci_fdt.c +++ b/sys/dev/fdt/xhci_fdt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xhci_fdt.c,v 1.17 2021/06/29 12:46:36 patrick Exp $ */ +/* $OpenBSD: xhci_fdt.c,v 1.18 2021/10/24 17:52:27 mpi Exp $ */ /* * Copyright (c) 2017 Mark Kettenis * @@ -48,7 +48,7 @@ struct xhci_fdt_softc { int xhci_fdt_match(struct device *, void *, void *); void xhci_fdt_attach(struct device *, struct device *, void *); -struct cfattach xhci_fdt_ca = { +const struct cfattach xhci_fdt_ca = { sizeof(struct xhci_fdt_softc), xhci_fdt_match, xhci_fdt_attach }; -- 2.20.1