Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/2449e7690345
branches:  trunk
changeset: 366526:2449e7690345
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Fri Aug 31 18:43:29 2018 +0000

description:
constify mvsata_pci_products[]

diffstat:

 sys/dev/ic/mvsata.c      |  6 +++---
 sys/dev/ic/mvsatavar.h   |  4 ++--
 sys/dev/pci/mvsata_pci.c |  6 +++---
 3 files changed, 8 insertions(+), 8 deletions(-)

diffs (72 lines):

diff -r ee8edf2e9232 -r 2449e7690345 sys/dev/ic/mvsata.c
--- a/sys/dev/ic/mvsata.c       Fri Aug 31 18:27:47 2018 +0000
+++ b/sys/dev/ic/mvsata.c       Fri Aug 31 18:43:29 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mvsata.c,v 1.40 2018/04/08 11:57:43 mlelstv Exp $      */
+/*     $NetBSD: mvsata.c,v 1.41 2018/08/31 18:43:29 jdolecek Exp $     */
 /*
  * Copyright (c) 2008 KIYOHARA Takashi
  * All rights reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mvsata.c,v 1.40 2018/04/08 11:57:43 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mvsata.c,v 1.41 2018/08/31 18:43:29 jdolecek Exp $");
 
 #include "opt_mvsata.h"
 
@@ -255,7 +255,7 @@
 }
 
 int
-mvsata_attach(struct mvsata_softc *sc, struct mvsata_product *product,
+mvsata_attach(struct mvsata_softc *sc, const struct mvsata_product *product,
              int (*mvsata_sreset)(struct mvsata_softc *),
              int (*mvsata_misc_reset)(struct mvsata_softc *),
              int read_pre_amps)
diff -r ee8edf2e9232 -r 2449e7690345 sys/dev/ic/mvsatavar.h
--- a/sys/dev/ic/mvsatavar.h    Fri Aug 31 18:27:47 2018 +0000
+++ b/sys/dev/ic/mvsatavar.h    Fri Aug 31 18:43:29 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mvsatavar.h,v 1.3 2017/10/07 16:05:32 jdolecek Exp $   */
+/*     $NetBSD: mvsatavar.h,v 1.4 2018/08/31 18:43:29 jdolecek Exp $   */
 /*
  * Copyright (c) 2008 KIYOHARA Takashi
  * All rights reserved.
@@ -142,7 +142,7 @@
        void (*sc_enable_intr)(struct mvsata_port *, int);
 };
 
-int mvsata_attach(struct mvsata_softc *, struct mvsata_product *,
+int mvsata_attach(struct mvsata_softc *, const struct mvsata_product *,
                  int (*mvsata_sreset)(struct mvsata_softc *),
                  int (*mvsata_misc_reset)(struct mvsata_softc *), int);
 int mvsata_intr(struct mvsata_hc *);
diff -r ee8edf2e9232 -r 2449e7690345 sys/dev/pci/mvsata_pci.c
--- a/sys/dev/pci/mvsata_pci.c  Fri Aug 31 18:27:47 2018 +0000
+++ b/sys/dev/pci/mvsata_pci.c  Fri Aug 31 18:43:29 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mvsata_pci.c,v 1.9 2017/06/21 22:48:05 jdolecek Exp $  */
+/*     $NetBSD: mvsata_pci.c,v 1.10 2018/08/31 18:43:29 jdolecek Exp $ */
 /*
  * Copyright (c) 2008 KIYOHARA Takashi
  * All rights reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mvsata_pci.c,v 1.9 2017/06/21 22:48:05 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mvsata_pci.c,v 1.10 2018/08/31 18:43:29 jdolecek Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -108,7 +108,7 @@
 CFATTACH_DECL_NEW(mvsata_pci, sizeof(struct mvsata_pci_softc),
     mvsata_pci_match, mvsata_pci_attach, mvsata_pci_detach, NULL);
 
-struct mvsata_product mvsata_pci_products[] = {
+static const struct mvsata_product mvsata_pci_products[] = {
 #define PCI_VP(v, p)   PCI_VENDOR_ ## v, PCI_PRODUCT_ ## v ## _ ## p
        { PCI_VP(MARVELL, 88SX5040),            1, 4, gen1, 0 },
        { PCI_VP(MARVELL, 88SX5041),            1, 4, gen1, 0 },



Home | Main Index | Thread Index | Old Index