Module Name:    src
Committed By:   dyoung
Date:           Wed May 11 00:17:55 UTC 2011

Modified Files:
        src/sys/dev/pci: radeonfb.c

Log Message:
Constify pci_attach_args.


To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 src/sys/dev/pci/radeonfb.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/radeonfb.c
diff -u src/sys/dev/pci/radeonfb.c:1.43 src/sys/dev/pci/radeonfb.c:1.44
--- src/sys/dev/pci/radeonfb.c:1.43	Fri Apr 15 21:47:39 2011
+++ src/sys/dev/pci/radeonfb.c	Wed May 11 00:17:55 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: radeonfb.c,v 1.43 2011/04/15 21:47:39 dyoung Exp $ */
+/*	$NetBSD: radeonfb.c,v 1.44 2011/05/11 00:17:55 dyoung Exp $ */
 
 /*-
  * Copyright (c) 2006 Itronix Inc.
@@ -70,7 +70,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: radeonfb.c,v 1.43 2011/04/15 21:47:39 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: radeonfb.c,v 1.44 2011/05/11 00:17:55 dyoung Exp $");
 
 #define RADEONFB_DEFAULT_DEPTH 8
 
@@ -107,7 +107,7 @@
 static paddr_t radeonfb_mmap(void *, void *, off_t, int);
 static int radeonfb_scratch_test(struct radeonfb_softc *, int, uint32_t);
 static void radeonfb_loadbios(struct radeonfb_softc *,
-    struct pci_attach_args *);
+    const struct pci_attach_args *);
 
 static uintmax_t radeonfb_getprop_num(struct radeonfb_softc *, const char *,
     uintmax_t);
@@ -416,7 +416,7 @@
 static int
 radeonfb_match(device_t parent, cfdata_t match, void *aux)
 {
-	struct pci_attach_args	*pa = aux;
+	const struct pci_attach_args	*pa = aux;
 	int			i;
 
 	if (PCI_VENDOR(pa->pa_id) != PCI_VENDOR_ATI)
@@ -434,7 +434,7 @@
 radeonfb_attach(device_t parent, device_t dev, void *aux)
 {
 	struct radeonfb_softc	*sc = device_private(dev);
-	struct pci_attach_args	*pa = aux;
+	const struct pci_attach_args	*pa = aux;
 	const char		*mptr;
 	bus_size_t		bsz;
 	pcireg_t		screg;
@@ -1151,7 +1151,7 @@
 }
 
 static void
-radeonfb_loadbios(struct radeonfb_softc *sc, struct pci_attach_args *pa)
+radeonfb_loadbios(struct radeonfb_softc *sc, const struct pci_attach_args *pa)
 {
 	bus_space_tag_t		romt;
 	bus_space_handle_t	romh, biosh;

Reply via email to