constify mvsata_pci_products[]

This commit is contained in:
jdolecek 2018-08-31 18:43:29 +00:00
parent 486b78bb06
commit 5705ba588f
3 changed files with 8 additions and 8 deletions

View File

@ -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 @@ mvsata_pmp_select(struct mvsata_port *mvport, int pmpport)
}
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)

View File

@ -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 @@ struct mvsata_softc {
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 *);

View File

@ -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 @@ static void mvsata_pci_enable_intr(struct mvsata_port *, int);
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 },