Module Name: src Committed By: dyoung Date: Wed May 11 00:12:41 UTC 2011
Modified Files: src/sys/dev/pci: chipsfb.c Log Message: Constify pci_attach_args. To generate a diff of this commit: cvs rdiff -u -r1.28 -r1.29 src/sys/dev/pci/chipsfb.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pci/chipsfb.c diff -u src/sys/dev/pci/chipsfb.c:1.28 src/sys/dev/pci/chipsfb.c:1.29 --- src/sys/dev/pci/chipsfb.c:1.28 Tue Apr 5 23:25:00 2011 +++ src/sys/dev/pci/chipsfb.c Wed May 11 00:12:41 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: chipsfb.c,v 1.28 2011/04/05 23:25:00 dyoung Exp $ */ +/* $NetBSD: chipsfb.c,v 1.29 2011/05/11 00:12:41 dyoung Exp $ */ /* * Copyright (c) 2006 Michael Lorenz @@ -31,7 +31,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: chipsfb.c,v 1.28 2011/04/05 23:25:00 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: chipsfb.c,v 1.29 2011/05/11 00:12:41 dyoung Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -69,7 +69,7 @@ static int chipsfb_pci_match(device_t parent, cfdata_t match, void *aux) { - struct pci_attach_args *pa = (struct pci_attach_args *)aux; + const struct pci_attach_args *pa = (const struct pci_attach_args *)aux; if (PCI_CLASS(pa->pa_class) != PCI_CLASS_DISPLAY || PCI_SUBCLASS(pa->pa_class) != PCI_SUBCLASS_DISPLAY_VGA) @@ -88,7 +88,7 @@ { struct chipsfb_pci_softc *scp = device_private(self); struct chipsfb_softc *sc = &scp->sc_chips; - struct pci_attach_args *pa = aux; + const struct pci_attach_args *pa = aux; char devinfo[256]; pcireg_t screg;