Re: [RFC PATCH 04/14] PCI: refine and move pcie_cap_has_*() macros to include/linux/pci.h

2012-07-10 Thread Bjorn Helgaas
On Tue, Jul 10, 2012 at 9:54 AM, Jiang Liu wrote: > From: Jiang Liu > > Move pcie_cap_has_*() macros to include/linux/pci.h, so they can be shared. > Since pcie_flags was introduced, rework these macros to take a struct pci_dev > * > and use pcie_flags insead of type and flags. > > Signed-off-by

[RFC PATCH 04/14] PCI: refine and move pcie_cap_has_*() macros to include/linux/pci.h

2012-07-10 Thread Jiang Liu
From: Jiang Liu Move pcie_cap_has_*() macros to include/linux/pci.h, so they can be shared. Since pcie_flags was introduced, rework these macros to take a struct pci_dev * and use pcie_flags insead of type and flags. Signed-off-by: Jiang Liu Signed-off-by: Yijing Wang --- drivers/pci/pci.c