summaryrefslogtreecommitdiff
path: root/sys/dev/gpio
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/dev/gpio
parent90576ca3c44963267c861feb5432ae35c1ccd46b (diff)
constify struct cfattach
Diffstat (limited to 'sys/dev/gpio')
-rw-r--r--sys/dev/gpio/gpio.c4
-rw-r--r--sys/dev/gpio/gpioiic.c4
-rw-r--r--sys/dev/gpio/gpioow.c4
-rw-r--r--sys/dev/gpio/gpiosim.c4
4 files changed, 8 insertions, 8 deletions
diff --git a/sys/dev/gpio/gpio.c b/sys/dev/gpio/gpio.c
index 0aa7ed5c69b..421f38be60e 100644
--- a/sys/dev/gpio/gpio.c
+++ b/sys/dev/gpio/gpio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gpio.c,v 1.15 2017/08/18 12:15:35 jsg Exp $ */
+/* $OpenBSD: gpio.c,v 1.16 2022/04/06 18:59:28 naddy Exp $ */
/*
* Copyright (c) 2008 Marc Balmer <mbalmer@openbsd.org>
@@ -54,7 +54,7 @@ int gpio_search(struct device *, void *, void *);
int gpio_print(void *, const char *);
int gpio_pinbyname(struct gpio_softc *, char *gp_name);
-struct cfattach gpio_ca = {
+const struct cfattach gpio_ca = {
sizeof (struct gpio_softc),
gpio_match,
gpio_attach,
diff --git a/sys/dev/gpio/gpioiic.c b/sys/dev/gpio/gpioiic.c
index c638f7e113e..3c5f8e04764 100644
--- a/sys/dev/gpio/gpioiic.c
+++ b/sys/dev/gpio/gpioiic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gpioiic.c,v 1.10 2013/04/19 23:44:34 miod Exp $ */
+/* $OpenBSD: gpioiic.c,v 1.11 2022/04/06 18:59:28 naddy Exp $ */
/*
* Copyright (c) 2006 Alexander Yurchenko <grange@openbsd.org>
@@ -74,7 +74,7 @@ void gpioiic_bb_set_bits(void *, u_int32_t);
void gpioiic_bb_set_dir(void *, u_int32_t);
u_int32_t gpioiic_bb_read_bits(void *);
-struct cfattach gpioiic_ca = {
+const struct cfattach gpioiic_ca = {
sizeof(struct gpioiic_softc),
gpioiic_match,
gpioiic_attach,
diff --git a/sys/dev/gpio/gpioow.c b/sys/dev/gpio/gpioow.c
index 64d79ab0cb8..43d5d6d8950 100644
--- a/sys/dev/gpio/gpioow.c
+++ b/sys/dev/gpio/gpioow.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gpioow.c,v 1.5 2011/07/03 15:47:16 matthew Exp $ */
+/* $OpenBSD: gpioow.c,v 1.6 2022/04/06 18:59:28 naddy Exp $ */
/*
* Copyright (c) 2006 Alexander Yurchenko <grange@openbsd.org>
@@ -59,7 +59,7 @@ void gpioow_bb_tx(void *);
int gpioow_bb_get(void *);
void gpioow_bb_set(void *, int);
-struct cfattach gpioow_ca = {
+const struct cfattach gpioow_ca = {
sizeof(struct gpioow_softc),
gpioow_match,
gpioow_attach,
diff --git a/sys/dev/gpio/gpiosim.c b/sys/dev/gpio/gpiosim.c
index f4ee74bd512..18c67f595ed 100644
--- a/sys/dev/gpio/gpiosim.c
+++ b/sys/dev/gpio/gpiosim.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gpiosim.c,v 1.1 2008/11/23 18:46:49 mbalmer Exp $ */
+/* $OpenBSD: gpiosim.c,v 1.2 2022/04/06 18:59:28 naddy Exp $ */
/*
* Copyright (c) 2007 Marc Balmer <mbalmer@openbsd.org>
@@ -54,7 +54,7 @@ int gpiosim_pin_read(void *, int);
void gpiosim_pin_write(void *, int, int);
void gpiosim_pin_ctl(void *, int, int);
-struct cfattach gpiosim_ca = {
+const struct cfattach gpiosim_ca = {
sizeof(struct gpiosim_softc), gpiosim_match, gpiosim_attach
};