1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/pci/controller/dwc
Serge Semin bd42f3108b PCI: dwc: Reuse local pointer to the resource data
dw_pcie_host_init() has two instances of the resource structure pointers
used in unrelated places. It's pointless to have two different local
storages for them since the corresponding code is small and having
resource-specific names doesn't make it more readable.

Convert these parts of the function to use a common pointer to the
resource structure instance.

Link: https://lore.kernel.org/r/20220624143428.8334-13-Sergey.Semin@baikalelectronics.ru
Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
2022-07-05 19:00:52 -05:00
..
Kconfig Merge branch 'remotes/lorenzo/pci/qcom' 2021-11-05 11:28:52 -05:00
Makefile PCI: qcom-ep: Add Qualcomm PCIe Endpoint controller driver 2021-10-11 15:34:02 -05:00
pci-dra7xx.c bitmap patches for 5.17-rc1 2022-01-23 06:20:44 +02:00
pci-exynos.c pci-v5.17-changes 2022-01-16 08:08:11 +02:00
pci-imx6.c PCI: imx6: Fix PERST# start-up sequence 2022-05-11 13:50:45 +01:00
pci-keystone.c PCI: Add defines for normal and subtractive PCI bridges 2022-02-17 15:29:35 -06:00
pci-layerscape-ep.c PCI: layerscape: Correct syntax by changing comma to semicolon 2021-03-22 17:24:19 +00:00
pci-layerscape.c PCI: layerscape: Change to use the DWC common link-up check function 2022-01-05 15:23:15 +00:00
pci-meson.c PCI: Add defines for normal and subtractive PCI bridges 2022-02-17 15:29:35 -06:00
pcie-al.c PCI: al: Remove useless dw_pcie_ops 2021-02-24 11:09:50 -06:00
pcie-armada8k.c PCI: dwc: Move dw_pcie_setup_rc() to DWC common code 2020-11-19 10:51:41 +00:00
pcie-artpec6.c PCI: artpec6: Prefer of_device_get_match_data() 2022-01-03 15:00:55 -06:00
pcie-designware-ep.c PCI: dwc: Add braces to multi-line if-else statements 2022-07-05 19:00:52 -05:00
pcie-designware-host.c PCI: dwc: Reuse local pointer to the resource data 2022-07-05 19:00:52 -05:00
pcie-designware-plat.c PCI: designware-plat: Prefer of_device_get_match_data() 2022-01-03 15:01:09 -06:00
pcie-designware.c PCI: dwc: Organize local variable usage 2022-07-05 19:00:52 -05:00
pcie-designware.h PCI: dwc: Move iATU detection earlier 2021-04-29 17:05:59 +01:00
pcie-dw-rockchip.c PCI: rockchip-dwc: Add legacy interrupt support 2022-05-11 16:01:26 +01:00
pcie-fu740.c Merge branch 'pci/host/fu740' 2022-03-22 17:16:24 -05:00
pcie-hisi.c PCI: hisi: Avoid invalid address space conversions 2022-01-03 15:05:28 -06:00
pcie-histb.c PCI: histb: Drop error data fabrication when config read fails 2021-11-18 13:40:29 -06:00
pcie-intel-gw.c PCI: intel-gw: Rename intel_pcie_port to intel_pcie 2022-01-03 15:01:43 -06:00
pcie-keembay.c PCI: keembay: Add support for Intel Keem Bay 2021-08-20 13:47:05 +01:00
pcie-kirin.c pci-v5.18-changes 2022-03-25 13:02:05 -07:00
pcie-qcom-ep.c PCI: qcom-ep: Move enable/disable resources code to common functions 2022-05-11 10:48:35 +01:00
pcie-qcom.c pci-v5.19-changes 2022-05-27 15:25:10 -07:00
pcie-spear13xx.c PCI: spear13xx: Avoid invalid address space conversions 2022-01-03 15:05:28 -06:00
pcie-tegra194-acpi.c PCI: tegra194: Fix MCFG quirk build regressions 2021-06-18 10:32:34 -05:00
pcie-tegra194.c PCI: tegra194: Remove unnecessary MSI enable reg save and restore 2022-04-11 13:52:35 +01:00
pcie-uniphier-ep.c PCI: uniphier-ep: Add NX1 support 2022-02-11 16:26:21 +00:00
pcie-uniphier.c PCI: uniphier: Rename uniphier_pcie_priv to uniphier_pcie 2022-01-03 15:05:28 -06:00
pcie-visconti.c PCI: visconti: Remove surplus dev_err() when using platform_get_irq_byname() 2021-10-07 16:03:57 +01:00