Commit 450e344e authored by Minghuan Lian's avatar Minghuan Lian Committed by Bjorn Helgaas

PCI: designware: Rename get_msi_data() to get_msi_addr()

The struct pcie_host_ops .get_msi_data() method returns the MSI message
address.  To accurately express its purpose, rename it to .get_msi_addr().
Signed-off-by: default avatarMinghuan Lian <Minghuan.Lian@freescale.com>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Acked-by: default avatarMohit KUMAR <mohit.kumar@st.com>
parent 0c61ea77
...@@ -361,8 +361,8 @@ static int dw_msi_setup_irq(struct msi_chip *chip, struct pci_dev *pdev, ...@@ -361,8 +361,8 @@ static int dw_msi_setup_irq(struct msi_chip *chip, struct pci_dev *pdev,
*/ */
desc->msi_attrib.multiple = msgvec; desc->msi_attrib.multiple = msgvec;
if (pp->ops->get_msi_data) if (pp->ops->get_msi_addr)
msg.address_lo = pp->ops->get_msi_data(pp); msg.address_lo = pp->ops->get_msi_addr(pp);
else else
msg.address_lo = virt_to_phys((void *)pp->msi_data); msg.address_lo = virt_to_phys((void *)pp->msi_data);
msg.address_hi = 0x0; msg.address_hi = 0x0;
......
...@@ -70,7 +70,7 @@ struct pcie_host_ops { ...@@ -70,7 +70,7 @@ struct pcie_host_ops {
void (*host_init)(struct pcie_port *pp); void (*host_init)(struct pcie_port *pp);
void (*msi_set_irq)(struct pcie_port *pp, int irq); void (*msi_set_irq)(struct pcie_port *pp, int irq);
void (*msi_clear_irq)(struct pcie_port *pp, int irq); void (*msi_clear_irq)(struct pcie_port *pp, int irq);
u32 (*get_msi_data)(struct pcie_port *pp); u32 (*get_msi_addr)(struct pcie_port *pp);
void (*scan_bus)(struct pcie_port *pp); void (*scan_bus)(struct pcie_port *pp);
int (*msi_host_init)(struct pcie_port *pp, struct msi_chip *chip); int (*msi_host_init)(struct pcie_port *pp, struct msi_chip *chip);
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment