diff options
author | Christian Weisgerber <naddy@cvs.openbsd.org> | 2022-04-06 18:59:31 +0000 |
---|---|---|
committer | Christian Weisgerber <naddy@cvs.openbsd.org> | 2022-04-06 18:59:31 +0000 |
commit | ebc1b592da53d1d38401806437530b56bffc8afd (patch) | |
tree | 5ee147f2b5a9dc203dd38da2c735f246fa830f58 /sys/dev/adb | |
parent | 90576ca3c44963267c861feb5432ae35c1ccd46b (diff) |
constify struct cfattach
Diffstat (limited to 'sys/dev/adb')
-rw-r--r-- | sys/dev/adb/akbd.c | 4 | ||||
-rw-r--r-- | sys/dev/adb/ams.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/adb/akbd.c b/sys/dev/adb/akbd.c index c7287c81fe9..801f5b7f09a 100644 --- a/sys/dev/adb/akbd.c +++ b/sys/dev/adb/akbd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: akbd.c,v 1.14 2014/01/26 17:48:08 miod Exp $ */ +/* $OpenBSD: akbd.c,v 1.15 2022/04/06 18:59:27 naddy Exp $ */ /* $NetBSD: akbd.c,v 1.17 2005/01/15 16:00:59 chs Exp $ */ /* @@ -57,7 +57,7 @@ int akbdmatch(struct device *, void *, void *); void akbdattach(struct device *, struct device *, void *); /* Driver definition. */ -struct cfattach akbd_ca = { +const struct cfattach akbd_ca = { sizeof(struct akbd_softc), akbdmatch, akbdattach }; struct cfdriver akbd_cd = { diff --git a/sys/dev/adb/ams.c b/sys/dev/adb/ams.c index 433f478c4b0..7b79b78c080 100644 --- a/sys/dev/adb/ams.c +++ b/sys/dev/adb/ams.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ams.c,v 1.7 2016/06/05 20:02:36 bru Exp $ */ +/* $OpenBSD: ams.c,v 1.8 2022/04/06 18:59:27 naddy Exp $ */ /* $NetBSD: ams.c,v 1.11 2000/12/19 03:13:40 tsubai Exp $ */ /* @@ -50,7 +50,7 @@ int amsmatch(struct device *, void *, void *); void amsattach(struct device *, struct device *, void *); /* Driver definition. */ -struct cfattach ams_ca = { +const struct cfattach ams_ca = { sizeof(struct ams_softc), amsmatch, amsattach }; /* Driver definition. */ |