constify
This commit is contained in:
parent
d59582c127
commit
739cd954dd
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: if_re_pci.c,v 1.5 2005/01/22 04:34:22 briggs Exp $ */
|
||||
/* $NetBSD: if_re_pci.c,v 1.6 2005/02/13 09:10:54 jdolecek Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997, 1998-2003
|
||||
|
@ -99,7 +99,7 @@ static void re_pci_attach(struct device *, struct device *, void *);
|
|||
/*
|
||||
* Various supported device vendors/types and their names.
|
||||
*/
|
||||
static struct rtk_type re_devs[] = {
|
||||
static const struct rtk_type re_devs[] = {
|
||||
{ PCI_VENDOR_REALTEK, PCI_PRODUCT_REALTEK_RT8139, RTK_HWREV_8139CPLUS,
|
||||
"RealTek 8139C+ 10/100BaseTX" },
|
||||
{ PCI_VENDOR_REALTEK, PCI_PRODUCT_REALTEK_RT8169, RTK_HWREV_8169,
|
||||
|
@ -111,7 +111,7 @@ static struct rtk_type re_devs[] = {
|
|||
{ 0, 0, 0, NULL }
|
||||
};
|
||||
|
||||
static struct rtk_hwrev re_hwrevs[] = {
|
||||
static const struct rtk_hwrev re_hwrevs[] = {
|
||||
{ RTK_HWREV_8139, RTK_8139, "" },
|
||||
{ RTK_HWREV_8139A, RTK_8139, "A" },
|
||||
{ RTK_HWREV_8139AG, RTK_8139, "A-G" },
|
||||
|
@ -138,7 +138,7 @@ CFATTACH_DECL(re_pci, sizeof(struct re_pci_softc), re_pci_probe, re_pci_attach,
|
|||
static int
|
||||
re_pci_probe(struct device *parent, struct cfdata *match, void *aux)
|
||||
{
|
||||
struct rtk_type *t;
|
||||
const struct rtk_type *t;
|
||||
struct pci_attach_args *pa = aux;
|
||||
bus_space_tag_t rtk_btag;
|
||||
bus_space_handle_t rtk_bhandle;
|
||||
|
@ -182,8 +182,8 @@ re_pci_attach(struct device *parent, struct device *self, void *aux)
|
|||
pci_chipset_tag_t pc = pa->pa_pc;
|
||||
pci_intr_handle_t ih;
|
||||
const char *intrstr = NULL;
|
||||
struct rtk_type *t;
|
||||
struct rtk_hwrev *hw_rev;
|
||||
const struct rtk_type *t;
|
||||
const struct rtk_hwrev *hw_rev;
|
||||
int hwrev;
|
||||
int error = 0;
|
||||
int pmreg;
|
||||
|
|
Loading…
Reference in New Issue