PCI: Add pci_find_resource()
authorMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 15 Sep 2016 08:07:03 +0000 (11:07 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 16 Sep 2016 23:16:03 +0000 (01:16 +0200)
commitafd29f9017a271fb048b69275975c5451fd0e674
treef2de464548ec5b7e9749b780e114c6eeb669e679
parent10b68700add43d0c38fedefb7a2b7df931f8e84e
PCI: Add pci_find_resource()

Add a new helper function pci_find_resource() that can be used to find out
whether a given resource (for example from a child device) is contained
within given PCI device's standard resources.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/pci/pci.c
include/linux/pci.h