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/acpi/acpibtn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/acpi/acpibtn.c') diff --git a/sys/dev/acpi/acpibtn.c b/sys/dev/acpi/acpibtn.c index 1728f1c5fd3..d9254850c8e 100644 --- a/sys/dev/acpi/acpibtn.c +++ b/sys/dev/acpi/acpibtn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpibtn.c,v 1.48 2022/02/08 17:25:12 deraadt Exp $ */ +/* $OpenBSD: acpibtn.c,v 1.49 2022/04/06 18:59:27 naddy Exp $ */ /* * Copyright (c) 2005 Marco Peereboom * @@ -65,7 +65,7 @@ struct acpi_lid { SLIST_HEAD(acpi_lid_head, acpi_lid) acpibtn_lids = SLIST_HEAD_INITIALIZER(acpibtn_lids); -struct cfattach acpibtn_ca = { +const struct cfattach acpibtn_ca = { sizeof(struct acpibtn_softc), acpibtn_match, acpibtn_attach, NULL, acpibtn_activate }; -- cgit v1.2.3