Re: [PATCH v2 2/4] of/pci: Add of_pci_get_devfn() function
From: Thierry Reding
Date: Thu Feb 14 2013 - 01:52:51 EST
On Wed, Feb 13, 2013 at 10:59:50PM +0000, Grant Likely wrote:
> On Mon, 11 Feb 2013 09:22:18 +0100, Thierry Reding <thierry.reding@xxxxxxxxxxxxxxxxx> wrote:
> > 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@xxxxxxxxxxxxxxxxx>
> > ---
> > Changes in v2:
> > - rename devfn and err variables for clarity
> > drivers/of/of_pci.c | 34 +++++++++++++++++++++++++++++-----
> > include/linux/of_pci.h | 1 +
> There isn't a whole lot of value in this patch without another user.
> I'll need to see the other patches that make use of this.
Alright, I'll take that back into the Tegra series as well.
Description: PGP signature