]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
PCI: designware: Rename get_msi_data() to get_msi_addr()
authorMinghuan Lian <Minghuan.Lian@freescale.com>
Tue, 23 Sep 2014 14:28:58 +0000 (22:28 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 24 Sep 2014 13:04:39 +0000 (07:04 -0600)
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: Minghuan Lian <Minghuan.Lian@freescale.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Mohit KUMAR <mohit.kumar@st.com>
drivers/pci/host/pcie-designware.c
drivers/pci/host/pcie-designware.h

index 4d7cbd2975a56ab599cf33826a0e1a2e2db1097d..566658750201c33df682e1fd697d782296a7f40d 100644 (file)
@@ -361,8 +361,8 @@ static int dw_msi_setup_irq(struct msi_chip *chip, struct pci_dev *pdev,
         */
        desc->msi_attrib.multiple = msgvec;
 
-       if (pp->ops->get_msi_data)
-               msg.address_lo = pp->ops->get_msi_data(pp);
+       if (pp->ops->get_msi_addr)
+               msg.address_lo = pp->ops->get_msi_addr(pp);
        else
                msg.address_lo = virt_to_phys((void *)pp->msi_data);
        msg.address_hi = 0x0;
index 48f86702cc9c3c90d4d8c73499ccbcbe9e34ab9e..904e40a3f32a59320c3dbc078e9297acb0ee8898 100644 (file)
@@ -70,7 +70,7 @@ struct pcie_host_ops {
        void (*host_init)(struct pcie_port *pp);
        void (*msi_set_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);
        int (*msi_host_init)(struct pcie_port *pp, struct msi_chip *chip);
 };