diff mbox

[2/9] PCI: dra7xx: Name private struct pointer "dra7xx" consistently

Message ID 20161007163359.24926.11223.stgit@bhelgaas-glaptop2.roam.corp.google.com (mailing list archive)
State New, archived
Delegated to: Bjorn Helgaas
Headers show

Commit Message

Bjorn Helgaas Oct. 7, 2016, 4:33 p.m. UTC
Use a device-specific name, "dra7xx", for struct dra7xx_pcie pointers
to hint that this is device-specific information.  No functional change
intended.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
---
 drivers/pci/host/pci-dra7xx.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)


--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/pci/host/pci-dra7xx.c b/drivers/pci/host/pci-dra7xx.c
index 765f48b..3248b32 100644
--- a/drivers/pci/host/pci-dra7xx.c
+++ b/drivers/pci/host/pci-dra7xx.c
@@ -73,14 +73,14 @@  struct dra7xx_pcie {
 
 #define to_dra7xx_pcie(x)	container_of((x), struct dra7xx_pcie, pp)
 
-static u32 dra7xx_readl(struct dra7xx_pcie *pcie, u32 offset)
+static u32 dra7xx_readl(struct dra7xx_pcie *dra7xx, u32 offset)
 {
-	return readl(pcie->base + offset);
+	return readl(dra7xx->base + offset);
 }
 
-static void dra7xx_writel(struct dra7xx_pcie *pcie, u32 offset, u32 value)
+static void dra7xx_writel(struct dra7xx_pcie *dra7xx, u32 offset, u32 value)
 {
-	writel(value, pcie->base + offset);
+	writel(value, dra7xx->base + offset);
 }
 
 static inline u32 dra7xx_pcie_readl_rc(struct pcie_port *pp, u32 offset)