diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2021-10-24 17:52:29 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2021-10-24 17:52:29 +0000 |
commit | a659756f5b7f65c299334dd83e8c990521498c1c (patch) | |
tree | d5e3557e6d709f590a885118b803d0d65b252e85 /sys/dev | |
parent | e4e05f78be131db9b43987c72b93a5836d7b468f (diff) |
Constify struct cfattach.
ok visa@ a long time ago, ok patrick@
Diffstat (limited to 'sys/dev')
103 files changed, 209 insertions, 209 deletions
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 <kettenis@openbsd.org> * @@ -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 <patrick@blueri.se> * @@ -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 <kettenis@openbsd.org> * @@ -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 <kettenis@openbsd.org> * @@ -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 <kettenis@openbsd.org> * @@ -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 <kettenis@openbsd.org> * @@ -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 <kettenis@openbsd.org> * @@ -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 <kettenis@openbsd.org> * @@ -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 <kettenis@openbsd.org> * @@ -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 <kettenis@openbsd.org> * @@ -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 <kettenis@openbsd.org> * @@ -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 <kettenis@openbsd.org> * @@ -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 <kettenis@openbsd.org> * @@ -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 <kettenis@openbsd.org> * @@ -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 <kettenis@openbsd.org> * @@ -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 <kettenis@openbsd.org> * @@ -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 <kettenis@openbsd.org> * @@ -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 <patrick@blueri.se> * @@ -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 <kettenis@openbsd.org> * @@ -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 <kettenis@openbsd.org> * @@ -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 <dlg@openbsd.org> * @@ -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 <patrick@blueri.se> * @@ -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 <kettenis@openbsd.org> * @@ -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 <kettenis@openbsd.org> * @@ -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 <dlg@openbsd.org> @@ -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 <kettenis@openbsd.org> * @@ -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 <kettenis@openbsd.org> * @@ -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 <patrick@blueri.se> * @@ -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 <kettenis@openbsd.org> * @@ -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 <kettenis@openbsd.org> * @@ -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 <kettenis@openbsd.org> * @@ -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 <kettenis@openbsd.org> * @@ -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 <kettenis@openbsd.org> * Copyright (c) 2017 Patrick Wildt <patrick@blueri.se> @@ -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 <patrick@blueri.se> @@ -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 <patrick@blueri.se> * @@ -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 <kettenis@openbsd.org> * @@ -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 <patrick@blueri.se> * @@ -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 <drahn@openbsd.org> * Copyright (c) 2006 Uwe Stuehler <uwe@openbsd.org> @@ -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 <drahn@openbsd.org> * Copyright (c) 2012-2013 Patrick Wildt <patrick@blueri.se> @@ -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 <patrick@blueri.se> * Copyright (c) 2016 Mark Kettenis <kettenis@openbsd.org> @@ -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 <kettenis@openbsd.org> * @@ -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 <patrick@blueri.se> * @@ -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 <patrick@blueri.se> * @@ -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 <patrick@blueri.se> * @@ -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 <drahn@motorola.com> * @@ -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 <patrick@blueri.se> * @@ -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 <kettenis@openbsd.org> * @@ -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 <patrick@blueri.se> * @@ -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 <patrick@blueri.se> * @@ -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 <kettenis@openbsd.org> * @@ -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 <kettenis@openbsd.org> * @@ -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 <patrick@blueri.se> * @@ -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 <patrick@blueri.se> * Copyright (c) 2016 Mark Kettenis <kettenis@openbsd.org> @@ -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 <kettenis@openbsd.org> * @@ -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 <kettenis@openbsd.org> * @@ -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 <patrick@blueri.se> * @@ -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 <kettenis@openbsd.org> * @@ -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 <drahn@motorola.com> * Copyright (c) 2018 Patrick Wildt <patrick@blueri.se> @@ -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 <dlg@openbsd.org> @@ -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 <kettenis@openbsd.org> * @@ -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 <kettenis@openbsd.org> * @@ -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 <jsg@openbsd.org> @@ -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 <patrick@blueri.se> * Copyright (c) 2005 Dale Rahn <drahn@dalerahn.com> @@ -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 <jsg@openbsd.org> @@ -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 <kettenis@openbsd.org> @@ -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 <kettenis@openbsd.org> @@ -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 <kettenis@openbsd.org> * @@ -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 <kettenis@openbsd.org> * @@ -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 <kettenis@openbsd.org> * @@ -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 <patrick@blueri.se> * @@ -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 <kettenis@openbsd.org> * Copyright (c) 2019 Patrick Wildt <patrick@blueri.se> @@ -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 <kettenis@openbsd.org> * @@ -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 <kettenis@openbsd.org> * @@ -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 <kettenis@openbsd.org> * @@ -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 <kettenis@openbsd.org> * @@ -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 <kettenis@openbsd.org> * @@ -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 <patrick@blueri.se> @@ -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 <kettenis@openbsd.org> * @@ -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 <patrick@blueri.se> * @@ -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 <patrick@blueri.se> * @@ -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 <patrick@blueri.se> * @@ -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 <drahn@openbsd.org> * 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 <drahn@openbsd.org> * @@ -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 <kettenis@openbsd.org> * @@ -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 <kettenis@openbsd.org> @@ -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 <kettenis@openbsd.org> * @@ -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 <kettenis@openbsd.org> * @@ -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 <kettenis@openbsd.org> * @@ -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 <kettenis@openbsd.org> * @@ -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 <kettenis@openbsd.org> * @@ -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 }; |