Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/4c5a5ed8d42a
branches:  trunk
changeset: 320104:4c5a5ed8d42a
user:      maxv <maxv%NetBSD.org@localhost>
date:      Sat Jun 23 06:57:24 2018 +0000

description:
constify

diffstat:

 sys/dev/isa/gus.c       |  8 ++++----
 sys/dev/pci/if_ep_pci.c |  8 ++++----
 sys/dev/usb/if_atu.c    |  6 +++---
 3 files changed, 11 insertions(+), 11 deletions(-)

diffs (99 lines):

diff -r 0e058255111c -r 4c5a5ed8d42a sys/dev/isa/gus.c
--- a/sys/dev/isa/gus.c Sat Jun 23 06:40:43 2018 +0000
+++ b/sys/dev/isa/gus.c Sat Jun 23 06:57:24 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gus.c,v 1.112 2017/10/31 21:53:48 nat Exp $    */
+/*     $NetBSD: gus.c,v 1.113 2018/06/23 06:57:24 maxv Exp $   */
 
 /*-
  * Copyright (c) 1996, 1999, 2008 The NetBSD Foundation, Inc.
@@ -88,7 +88,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gus.c,v 1.112 2017/10/31 21:53:48 nat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gus.c,v 1.113 2018/06/23 06:57:24 maxv Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -3239,7 +3239,7 @@
 }
 
 
-static ad1848_devmap_t gusmapping[] = {
+static const ad1848_devmap_t gusmapping[] = {
        { GUSMAX_DAC_LVL, AD1848_KIND_LVL, AD1848_AUX1_CHANNEL },
        { GUSMAX_LINE_IN_LVL, AD1848_KIND_LVL, AD1848_LINE_CHANNEL },
        { GUSMAX_MONO_LVL, AD1848_KIND_LVL, AD1848_MONO_CHANNEL },
@@ -3255,7 +3255,7 @@
        { GUSMAX_RECORD_SOURCE, AD1848_KIND_RECORDSOURCE, -1 }
 };
 
-static int nummap = sizeof(gusmapping) / sizeof(gusmapping[0]);
+static const int nummap = sizeof(gusmapping) / sizeof(gusmapping[0]);
 
 STATIC int
 gusmax_mixer_get_port(void *addr, mixer_ctrl_t *cp)
diff -r 0e058255111c -r 4c5a5ed8d42a sys/dev/pci/if_ep_pci.c
--- a/sys/dev/pci/if_ep_pci.c   Sat Jun 23 06:40:43 2018 +0000
+++ b/sys/dev/pci/if_ep_pci.c   Sat Jun 23 06:57:24 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_ep_pci.c,v 1.53 2014/03/29 19:28:24 christos Exp $  */
+/*     $NetBSD: if_ep_pci.c,v 1.54 2018/06/23 06:57:24 maxv Exp $      */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -62,7 +62,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ep_pci.c,v 1.53 2014/03/29 19:28:24 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ep_pci.c,v 1.54 2018/06/23 06:57:24 maxv Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -103,7 +103,7 @@
 CFATTACH_DECL_NEW(ep_pci, sizeof(struct ep_softc),
     ep_pci_match, ep_pci_attach, NULL, NULL);
 
-static struct ep_pci_product {
+static const struct ep_pci_product {
        u_int32_t       epp_prodid;     /* PCI product ID */
        u_short         epp_chipset;    /* 3Com chipset used */
        int             epp_flags;      /* initial softc flags */
@@ -149,7 +149,7 @@
 static const struct ep_pci_product *
 ep_pci_lookup(const struct pci_attach_args *pa)
 {
-       struct ep_pci_product *epp;
+       const struct ep_pci_product *epp;
 
        if (PCI_VENDOR(pa->pa_id) != PCI_VENDOR_3COM)
                return (NULL);
diff -r 0e058255111c -r 4c5a5ed8d42a sys/dev/usb/if_atu.c
--- a/sys/dev/usb/if_atu.c      Sat Jun 23 06:40:43 2018 +0000
+++ b/sys/dev/usb/if_atu.c      Sat Jun 23 06:57:24 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_atu.c,v 1.59 2018/06/22 04:17:42 msaitoh Exp $ */
+/*     $NetBSD: if_atu.c,v 1.60 2018/06/23 06:57:24 maxv Exp $ */
 /*     $OpenBSD: if_atu.c,v 1.48 2004/12/30 01:53:21 dlg Exp $ */
 /*
  * Copyright (c) 2003, 2004
@@ -48,7 +48,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_atu.c,v 1.59 2018/06/22 04:17:42 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_atu.c,v 1.60 2018/06/23 06:57:24 maxv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -209,7 +209,7 @@
          RadioIntersil,        ATU_NO_QUIRK },
 };
 
-struct atu_radfirm {
+static const struct atu_radfirm {
        enum    atu_radio_type atur_type;
        unsigned char   *atur_internal;
        size_t          atur_internal_sz;



Home | Main Index | Thread Index | Old Index