u-boot-brain/drivers/pci
Masahiro Yamada b75d8dc564 treewide: convert bd_t to struct bd_info by coccinelle
The Linux coding style guide (Documentation/process/coding-style.rst)
clearly says:

  It's a **mistake** to use typedef for structures and pointers.

Besides, using typedef for structures is annoying when you try to make
headers self-contained.

Let's say you have the following function declaration in a header:

  void foo(bd_t *bd);

This is not self-contained since bd_t is not defined.

To tell the compiler what 'bd_t' is, you need to include <asm/u-boot.h>

  #include <asm/u-boot.h>
  void foo(bd_t *bd);

Then, the include direcective pulls in more bloat needlessly.

If you use 'struct bd_info' instead, it is enough to put a forward
declaration as follows:

  struct bd_info;
  void foo(struct bd_info *bd);

Right, typedef'ing bd_t is a mistake.

I used coccinelle to generate this commit.

The semantic patch that makes this change is as follows:

  <smpl>
  @@
  typedef bd_t;
  @@
  -bd_t
  +struct bd_info
  </smpl>

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
2020-07-17 09:30:13 -04:00
..
fsl_pci_init.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
Kconfig pci: Add driver for Broadcom BCM2711 SoC PCIe controller 2020-07-10 11:49:28 +02:00
Makefile pci: Add driver for Broadcom BCM2711 SoC PCIe controller 2020-07-10 11:49:28 +02:00
pci_auto_common.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
pci_auto_old.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
pci_auto.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
pci_common.c env: Move env_get() to env.h 2019-08-11 16:43:41 -04:00
pci_compat.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
pci_ftpci100.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
pci_gt64120.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
pci_indirect.c pci: Don't use pci_indirect when DM is active 2018-05-08 18:50:23 -04:00
pci_internal.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pci_mpc85xx.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
pci_msc01.c common: Drop init.h from common header 2020-05-18 17:33:33 -04:00
pci_mvebu.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
pci_rom.c video: pci: Set up the copy framebuffer 2020-07-09 12:33:24 +08:00
pci_sandbox.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
pci_sh4.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
pci_sh7751.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
pci_sh7780.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
pci_tegra.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
pci_x86.c dm: pci: Update the PCI read_config() method to const dev * 2020-02-05 19:33:45 -07:00
pci-aardvark.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
pci-emul-uclass.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
pci-rcar-gen2.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
pci-rcar-gen3.c pci: Move some PCIe register offset definitions to a common header 2020-07-09 15:46:12 +02:00
pci-uclass.c treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
pci.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
pcie_brcmstb.c pci: Add driver for Broadcom BCM2711 SoC PCIe controller 2020-07-10 11:49:28 +02:00
pcie_dw_mvebu.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
pcie_dw_ti.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
pcie_ecam_generic.c pci-host-ecam-generic: access config space independent of system-wide bus id 2020-03-30 08:11:56 +05:30
pcie_fsl_fixup.c treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
pcie_fsl.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
pcie_fsl.h dm: pcie_fsl: Fix the calculation of controller index 2019-08-28 13:47:44 +05:30
pcie_imx.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
pcie_intel_fpga.c pci: Move some PCIe register offset definitions to a common header 2020-07-09 15:46:12 +02:00
pcie_layerscape_fixup_common.c treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
pcie_layerscape_fixup_common.h treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
pcie_layerscape_fixup.c treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
pcie_layerscape_gen4_fixup.c treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
pcie_layerscape_gen4.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
pcie_layerscape_gen4.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
pcie_layerscape.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
pcie_layerscape.h pci: layerscape: Add stream_id_cur field to ls_pcie structure 2019-12-26 16:00:21 +05:30
pcie_mediatek.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
pcie_phytium.c dm: pci: Update the PCI read_config() method to const dev * 2020-02-05 19:33:45 -07:00
pcie_rockchip_phy.c pci: Add Rockchip PCIe PHY controller driver 2020-05-22 20:53:20 +08:00
pcie_rockchip.c pci: Make Rockchip PCIe voltage regulators optional 2020-05-29 17:59:49 +08:00
pcie_rockchip.h pci: rockchip: Mark inline functions as static inline 2020-07-01 11:48:05 -04:00
pcie_xilinx.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00