Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci constify



details:   https://anonhg.NetBSD.org/src/rev/d513bc4a0175
branches:  trunk
changeset: 744616:d513bc4a0175
user:      maxv <maxv%NetBSD.org@localhost>
date:      Sat Feb 08 07:19:09 2020 +0000

description:
constify

diffstat:

 sys/dev/pci/if_aq.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r dbd605869cc1 -r d513bc4a0175 sys/dev/pci/if_aq.c
--- a/sys/dev/pci/if_aq.c       Sat Feb 08 07:07:06 2020 +0000
+++ b/sys/dev/pci/if_aq.c       Sat Feb 08 07:19:09 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_aq.c,v 1.7 2020/02/04 05:44:14 thorpej Exp $        */
+/*     $NetBSD: if_aq.c,v 1.8 2020/02/08 07:19:09 maxv Exp $   */
 
 /**
  * aQuantia Corporation Network Driver
@@ -62,7 +62,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_aq.c,v 1.7 2020/02/04 05:44:14 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_aq.c,v 1.8 2020/02/08 07:19:09 maxv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_if_aq.h"
@@ -973,7 +973,7 @@
        kmutex_t sc_mutex;
        kmutex_t sc_mpi_mutex;
 
-       struct aq_firmware_ops *sc_fw_ops;
+       const struct aq_firmware_ops *sc_fw_ops;
        uint64_t sc_fw_caps;
        enum aq_media_type sc_media_type;
        aq_link_speed_t sc_available_rates;
@@ -1113,7 +1113,7 @@
 static int fw2x_get_temperature(struct aq_softc *, uint32_t *);
 #endif
 
-static struct aq_firmware_ops aq_fw1x_ops = {
+static const struct aq_firmware_ops aq_fw1x_ops = {
        .reset = fw1x_reset,
        .set_mode = fw1x_set_mode,
        .get_mode = fw1x_get_mode,
@@ -1123,7 +1123,7 @@
 #endif
 };
 
-static struct aq_firmware_ops aq_fw2x_ops = {
+static const struct aq_firmware_ops aq_fw2x_ops = {
        .reset = fw2x_reset,
        .set_mode = fw2x_set_mode,
        .get_mode = fw2x_get_mode,



Home | Main Index | Thread Index | Old Index