From ebc1b592da53d1d38401806437530b56bffc8afd Mon Sep 17 00:00:00 2001 From: Christian Weisgerber Date: Wed, 6 Apr 2022 18:59:31 +0000 Subject: constify struct cfattach --- sys/dev/i2c/bmc150.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/i2c/bmc150.c') diff --git a/sys/dev/i2c/bmc150.c b/sys/dev/i2c/bmc150.c index 732691594e6..e276c28084f 100644 --- a/sys/dev/i2c/bmc150.c +++ b/sys/dev/i2c/bmc150.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bmc150.c,v 1.1 2017/11/30 14:53:21 kettenis Exp $ */ +/* $OpenBSD: bmc150.c,v 1.2 2022/04/06 18:59:28 naddy Exp $ */ /* * Copyright (c) 2017 Mark Kettenis @@ -59,7 +59,7 @@ struct bgw_softc { int bgw_match(struct device *, void *, void *); void bgw_attach(struct device *, struct device *, void *); -struct cfattach bgw_ca = { +const struct cfattach bgw_ca = { sizeof(struct bgw_softc), bgw_match, bgw_attach }; -- cgit v1.2.3