OSDN Git Service

PCI/MSI: Remove "pos" from the struct msi_desc msi_attrib
authorYijing Wang <wangyijing@huawei.com>
Tue, 23 Sep 2014 17:02:42 +0000 (11:02 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 1 Oct 2014 18:21:23 +0000 (12:21 -0600)
commit48c3c38f003c25d50a09d3da558667c5ecd530aa
treeaad2a4190c8622ab17b62384697cc6a356aab545
parent81052769e48609525c452d8f078a5786b673e178
PCI/MSI: Remove "pos" from the struct msi_desc msi_attrib

"msi_attrib.pos" is only used for MSI (not MSI-X), and we already cache the
MSI capability offset in "dev->msi_cap".

Remove "pos" from the struct msi_attrib and use "dev->msi_cap" directly.

[bhelgaas: changelog, fix whitespace]
Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
arch/mips/pci/msi-octeon.c
drivers/pci/host/pcie-designware.c
drivers/pci/msi.c
include/linux/msi.h