Skip to content

Commit

Permalink
PCI: rockchip-ep: Rename rockchip_pcie_parse_ep_dt()
Browse files Browse the repository at this point in the history
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: Damien Le Moal <dlemoal@kernel.org>
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
  • Loading branch information
Damien Le Moal authored and Bjorn Helgaas committed Nov 25, 2024
1 parent 9f737cc commit 2968534
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/pci/controller/pcie-rockchip-ep.c
Original file line number Diff line number Diff line change
Expand Up @@ -497,8 +497,8 @@ 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,
struct rockchip_pcie_ep *ep)
static int rockchip_pcie_ep_get_resources(struct rockchip_pcie *rockchip,
struct rockchip_pcie_ep *ep)
{
struct device *dev = rockchip->dev;
int err;
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 2968534

Please sign in to comment.