PCI: Index IOV resources in the conventional style
authorBjorn Helgaas <bhelgaas@google.com>
Wed, 25 Mar 2015 08:23:45 +0000 (16:23 +0800)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 31 Mar 2015 02:02:36 +0000 (13:02 +1100)
commitc1fe1f96e30d31cc99826f19a058d9e9eef87712
tree61843d26b8430e6e82c057decc0817bdcf39e553
parent0e6c9122a6ec96d19f1db61e9750287d86b6829c
PCI: Index IOV resources in the conventional style

Most of PCI uses "res = &dev->resource[i]", not "res = dev->resource + i".
Use that style in iov.c also.

No functional change.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Wei Yang <weiyang@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
drivers/pci/iov.c