Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/mii mii_knowndevs[] is de facto const, define it as ...



details:   https://anonhg.NetBSD.org/src/rev/8ec15e37bb0f
branches:  trunk
changeset: 1012602:8ec15e37bb0f
user:      uwe <uwe%NetBSD.org@localhost>
date:      Mon Aug 03 14:00:41 2020 +0000

description:
mii_knowndevs[] is de facto const, define it as such.

diffstat:

 sys/dev/mii/miidevs_data.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r b582ea71d24f -r 8ec15e37bb0f sys/dev/mii/miidevs_data.h
--- a/sys/dev/mii/miidevs_data.h        Mon Aug 03 10:52:08 2020 +0000
+++ b/sys/dev/mii/miidevs_data.h        Mon Aug 03 14:00:41 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: miidevs_data.h,v 1.153 2020/06/23 14:35:59 msaitoh Exp $       */
+/*     $NetBSD: miidevs_data.h,v 1.154 2020/08/03 14:00:41 uwe Exp $   */
 
 /*
  * THIS FILE AUTOMATICALLY GENERATED.  DO NOT EDIT.
@@ -41,7 +41,7 @@
        int model;
        const char *descr;
 };
-struct mii_knowndev mii_knowndevs[] = {
+const struct mii_knowndev mii_knowndevs[] = {
  { MII_OUI_AGERE, MII_MODEL_AGERE_ET1011, MII_STR_AGERE_ET1011 },
  { MII_OUI_AGERE, MII_MODEL_AGERE_ET1011C, MII_STR_AGERE_ET1011C },
  { MII_OUI_xxASIX, MII_MODEL_xxASIX_AX88X9X, MII_STR_xxASIX_AX88X9X },



Home | Main Index | Thread Index | Old Index