Skip to content
Snippets Groups Projects
Commit 62347efe authored by Myron Stowe's avatar Myron Stowe
Browse files

PCI: rockchip: Refactor rockchip_pcie_disable_clocks() signature

JIRA: https://issues.redhat.com/browse/RHEL-83611
Upstream Status: 500969661b0294e0442bc516a9e272e7e8561d95

commit 500969661b0294e0442bc516a9e272e7e8561d95
Author: Anand Moon <linux.amoon@gmail.com>
Date:   Mon Dec 2 20:41:44 2024 +0530

    PCI: rockchip: Refactor rockchip_pcie_disable_clocks() signature

    Refactor rockchip_pcie_disable_clocks() to accept a struct rockchip_pcie
    pointer instead of a void pointer thus improving type safety and code
    readability by explicitly specifying the expected data type.

    Link: https://lore.kernel.org/r/20241202151150.7393-4-linux.amoon@gmail.com


Signed-off-by: default avatarAnand Moon <linux.amoon@gmail.com>
Signed-off-by: default avatarLorenzo Pieralisi <lpieralisi@kernel.org>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Signed-off-by: default avatarKrzysztof Wilczyński <kwilczynski@kernel.org>
Reviewed-by: default avatarManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>

Signed-off-by: default avatarMyron Stowe <mstowe@redhat.com>
parent b81c447a
No related branches found
No related tags found
No related merge requests found
......@@ -270,9 +270,8 @@ int rockchip_pcie_enable_clocks(struct rockchip_pcie *rockchip)
}
EXPORT_SYMBOL_GPL(rockchip_pcie_enable_clocks);
void rockchip_pcie_disable_clocks(void *data)
void rockchip_pcie_disable_clocks(struct rockchip_pcie *rockchip)
{
struct rockchip_pcie *rockchip = data;
clk_bulk_disable_unprepare(rockchip->num_clks, rockchip->clks);
}
......
......@@ -369,7 +369,7 @@ int rockchip_pcie_init_port(struct rockchip_pcie *rockchip);
int rockchip_pcie_get_phys(struct rockchip_pcie *rockchip);
void rockchip_pcie_deinit_phys(struct rockchip_pcie *rockchip);
int rockchip_pcie_enable_clocks(struct rockchip_pcie *rockchip);
void rockchip_pcie_disable_clocks(void *data);
void rockchip_pcie_disable_clocks(struct rockchip_pcie *rockchip);
void rockchip_pcie_cfg_configuration_accesses(
struct rockchip_pcie *rockchip, u32 type);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment