summaryrefslogtreecommitdiff
path: root/lib/libpciaccess/src/common_capability.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2012-03-09 21:02:11 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2012-03-09 21:02:11 +0000
commitfdaa6ab556a8914edcb6dbe9da49821fd6c48b3e (patch)
treec6d814653ce0456e948c23f20800af1df73da128 /lib/libpciaccess/src/common_capability.c
parent79db6e4960cdb7facb6143b780c692265fc09c88 (diff)
Update to libpciaccess 0.13. Tested by shadchin@
Diffstat (limited to 'lib/libpciaccess/src/common_capability.c')
-rw-r--r--lib/libpciaccess/src/common_capability.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libpciaccess/src/common_capability.c b/lib/libpciaccess/src/common_capability.c
index 3963db1cc..488743dd6 100644
--- a/lib/libpciaccess/src/common_capability.c
+++ b/lib/libpciaccess/src/common_capability.c
@@ -25,7 +25,7 @@
/**
* \file common_capability.c
* Platform independent PCI capability related routines.
- *
+ *
* In addition to including the interface glue for \c pci_device_get_agp_info,
* this file also contains a generic implementation of that function.
*
@@ -51,7 +51,7 @@
* Once more than just the AGP capability is supported, the body of each of
* the cases in the capability processing loop should probably be broken out
* into its own function.
- *
+ *
* \todo
* Once more than just the AGP capability is supported, some care will need
* to be taken in partial failure cases. If, say, the first capability is
@@ -79,7 +79,7 @@ pci_fill_capabilities_generic( struct pci_device * dev )
if ( (status & 0x0010) == 0 ) {
return ENOSYS;
}
-
+
err = pci_device_cfg_read_u8( dev, & cap_offset, 52 );
if ( err ) {
return err;
@@ -101,7 +101,7 @@ pci_fill_capabilities_generic( struct pci_device * dev )
if ( err ) {
return err;
}
-
+
switch ( cap_id ) {
case 2: {
struct pci_agp_info * agp_info;
@@ -187,7 +187,7 @@ pci_device_get_agp_info( struct pci_device * dev )
if ( dev == NULL ) {
return NULL;
}
-
+
if ( dev_priv->agp == NULL ) {
(void) (*pci_sys->methods->fill_capabilities)( dev );
}