summaryrefslogtreecommitdiff
path: root/sys/arch/loongson
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@cvs.openbsd.org>2022-04-06 18:59:31 +0000
committerChristian Weisgerber <naddy@cvs.openbsd.org>2022-04-06 18:59:31 +0000
commitebc1b592da53d1d38401806437530b56bffc8afd (patch)
tree5ee147f2b5a9dc203dd38da2c735f246fa830f58 /sys/arch/loongson
parent90576ca3c44963267c861feb5432ae35c1ccd46b (diff)
constify struct cfattach
Diffstat (limited to 'sys/arch/loongson')
-rw-r--r--sys/arch/loongson/dev/apm.c4
-rw-r--r--sys/arch/loongson/dev/gdiumiic.c4
-rw-r--r--sys/arch/loongson/dev/glxclk.c4
-rw-r--r--sys/arch/loongson/dev/mcclock_isa.c4
-rw-r--r--sys/arch/loongson/dev/ohci_voyager.c4
5 files changed, 10 insertions, 10 deletions
diff --git a/sys/arch/loongson/dev/apm.c b/sys/arch/loongson/dev/apm.c
index 2d0fea5dc1d..81c484eb602 100644
--- a/sys/arch/loongson/dev/apm.c
+++ b/sys/arch/loongson/dev/apm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: apm.c,v 1.39 2020/12/25 12:59:51 visa Exp $ */
+/* $OpenBSD: apm.c,v 1.40 2022/04/06 18:59:26 naddy Exp $ */
/*-
* Copyright (c) 2001 Alexander Guy. All rights reserved.
@@ -72,7 +72,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/loongson/dev/gdiumiic.c b/sys/arch/loongson/dev/gdiumiic.c
index b8832134549..b247a0e2eed 100644
--- a/sys/arch/loongson/dev/gdiumiic.c
+++ b/sys/arch/loongson/dev/gdiumiic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gdiumiic.c,v 1.7 2020/09/30 22:23:41 patrick Exp $ */
+/* $OpenBSD: gdiumiic.c,v 1.8 2022/04/06 18:59:26 naddy Exp $ */
/*
* Copyright (c) 2010 Miodrag Vallat.
@@ -78,7 +78,7 @@ int gdiumiic_bustype(struct gpio_attach_args *);
void gdiumiic_sensors_scan(struct device *,
struct i2cbus_attach_args *, void *);
-struct cfattach gdiumiic_ca = {
+const struct cfattach gdiumiic_ca = {
sizeof(struct gdiumiic_softc),
gdiumiic_match,
gdiumiic_attach,
diff --git a/sys/arch/loongson/dev/glxclk.c b/sys/arch/loongson/dev/glxclk.c
index 5b8429e0889..c2f1c41ff6c 100644
--- a/sys/arch/loongson/dev/glxclk.c
+++ b/sys/arch/loongson/dev/glxclk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: glxclk.c,v 1.5 2015/07/19 21:11:47 jasper Exp $ */
+/* $OpenBSD: glxclk.c,v 1.6 2022/04/06 18:59:26 naddy Exp $ */
/*
* Copyright (c) 2013 Paul Irofti.
@@ -50,7 +50,7 @@ int glxclk_intr(void *);
int glxclk_stat_intr(void *arg);
void glxclk_startclock(struct cpu_info *);
-struct cfattach glxclk_ca = {
+const struct cfattach glxclk_ca = {
sizeof(struct glxclk_softc), glxclk_match, glxclk_attach,
};
diff --git a/sys/arch/loongson/dev/mcclock_isa.c b/sys/arch/loongson/dev/mcclock_isa.c
index b69a0a446ea..d01430dcf08 100644
--- a/sys/arch/loongson/dev/mcclock_isa.c
+++ b/sys/arch/loongson/dev/mcclock_isa.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mcclock_isa.c,v 1.2 2020/05/25 13:16:06 visa Exp $ */
+/* $OpenBSD: mcclock_isa.c,v 1.3 2022/04/06 18:59:26 naddy Exp $ */
/* $NetBSD: mcclock_isa.c,v 1.5 1996/12/05 01:39:29 cgd Exp $ */
/*
@@ -51,7 +51,7 @@ struct mcclock_isa_softc {
int mcclock_isa_match(struct device *, void *, void *);
void mcclock_isa_attach(struct device *, struct device *, void *);
-struct cfattach mcclock_isa_ca = {
+const struct cfattach mcclock_isa_ca = {
sizeof (struct mcclock_isa_softc), mcclock_isa_match,
mcclock_isa_attach,
};
diff --git a/sys/arch/loongson/dev/ohci_voyager.c b/sys/arch/loongson/dev/ohci_voyager.c
index ee168228ac3..875ecfc5648 100644
--- a/sys/arch/loongson/dev/ohci_voyager.c
+++ b/sys/arch/loongson/dev/ohci_voyager.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ohci_voyager.c,v 1.7 2019/01/07 03:41:06 dlg Exp $ */
+/* $OpenBSD: ohci_voyager.c,v 1.8 2022/04/06 18:59:26 naddy Exp $ */
/* OpenBSD: ohci_pci.c,v 1.33 2008/06/26 05:42:17 ray Exp */
/* $NetBSD: ohci_pci.c,v 1.23 2002/10/02 16:51:47 thorpej Exp $ */
@@ -72,7 +72,7 @@ struct ohci_voyager_softc {
void *sc_ih;
};
-struct cfattach ohci_voyager_ca = {
+const struct cfattach ohci_voyager_ca = {
sizeof(struct ohci_voyager_softc),
ohci_voyager_match, ohci_voyager_attach, NULL, ohci_activate
};