of/pci: Add of_pci_get_devfn() function
authorThierry Reding <thierry.reding@avionic-design.de>
Thu, 16 May 2013 15:55:18 +0000 (17:55 +0200)
committerJason Cooper <jason@lakedaemon.net>
Sun, 19 May 2013 20:30:10 +0000 (20:30 +0000)
This function can be used to parse the device and function number from a
standard 5-cell PCI resource. PCI_SLOT() and PCI_FUNC() can be used on
the returned value obtain the device and function numbers respectively.

Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>

No differences found