From: jmatthew Date: Sat, 12 Mar 2022 06:54:05 +0000 (+0000) Subject: Constify struct cfattach, not struct cfdriver X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=d895c343d40b472aa77479a2d4afa2f5b14946f9;p=openbsd Constify struct cfattach, not struct cfdriver --- diff --git a/sys/dev/pci/if_rge.c b/sys/dev/pci/if_rge.c index f7386f46995..41b09cd27b4 100644 --- a/sys/dev/pci/if_rge.c +++ b/sys/dev/pci/if_rge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_rge.c,v 1.17 2022/03/11 18:00:48 mpi Exp $ */ +/* $OpenBSD: if_rge.c,v 1.18 2022/03/12 06:54:05 jmatthew Exp $ */ /* * Copyright (c) 2019, 2020 Kevin Lo @@ -130,11 +130,11 @@ static const struct { RTL8125_MAC_CFG5_MCU }; -struct cfattach rge_ca = { +const struct cfattach rge_ca = { sizeof(struct rge_softc), rge_match, rge_attach, NULL, rge_activate }; -const struct cfdriver rge_cd = { +struct cfdriver rge_cd = { NULL, "rge", DV_IFNET };