This series is a clean up in the pci subsystem when accessing the pci configuration space. The first one is to re-use the PCI_FIND_CAP_TTL to limit the times iterating in pci configuration space. The next two is to use the exact type to access the pci cap and pcie ext cap. Tested on x86 and powerpc. Wei Yang (3): PCI: move PCI_FIND_CAP_TTL to pci.h and use it in quirks PCI: use u8 instead of int for pci configuration space pos and cap PCI: use u16 instead of int for pci express extended capabilities pos and cap drivers/pci/iov.c | 2 +- drivers/pci/pci.c | 68 +++++++++++++++++++++++++------------------------- drivers/pci/probe.c | 10 ++++---- drivers/pci/quirks.c | 19 +++++++------- include/linux/pci.h | 28 +++++++++++---------- 5 files changed, 65 insertions(+), 62 deletions(-) -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html