Commit 2968534e authored by Damien Le Moal's avatar Damien Le Moal Committed by Bjorn Helgaas
Browse files

PCI: rockchip-ep: Rename rockchip_pcie_parse_ep_dt()

To be consistent with the usual "get_resources" naming of driver
functions that acquire controller resources like clocks, PHY etc,
rename the function rockchip_pcie_parse_ep_dt() to
rockchip_pcie_ep_get_resources().

No functional changes.

Link: https://lore.kernel.org/r/20241017015849.190271-8-dlemoal@kernel.org


Signed-off-by: default avatarDamien Le Moal <dlemoal@kernel.org>
Signed-off-by: default avatarKrzysztof Wilczyński <kwilczynski@kernel.org>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
parent 9f737cca
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -497,7 +497,7 @@ static const struct pci_epc_ops rockchip_pcie_epc_ops = {
	.get_features	= rockchip_pcie_ep_get_features,
};

static int rockchip_pcie_parse_ep_dt(struct rockchip_pcie *rockchip,
static int rockchip_pcie_ep_get_resources(struct rockchip_pcie *rockchip,
					  struct rockchip_pcie_ep *ep)
{
	struct device *dev = rockchip->dev;
@@ -560,7 +560,7 @@ static int rockchip_pcie_ep_probe(struct platform_device *pdev)
	ep->epc = epc;
	epc_set_drvdata(epc, ep);

	err = rockchip_pcie_parse_ep_dt(rockchip, ep);
	err = rockchip_pcie_ep_get_resources(rockchip, ep);
	if (err)
		return err;