u-boot/arch/arm
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
..
cpu treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
dts i.MX for 2020.10 2020-07-17 08:04:28 -04:00
include treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
lib treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mach-aspeed common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
mach-at91 drivers: rename drivers to match compatible string 2020-07-09 18:57:22 -06:00
mach-bcm283x - add support for PCI and XHCI for RPi4 (64 bit only) 2020-07-10 14:31:22 -04:00
mach-bcmstb
mach-cortina board: presidio-asic: Add basic G3 engr. development board support 2020-02-07 16:16:01 -05:00
mach-davinci mmc: davinci_mmc: Cleanup to use dt in U-boot and static platdata in SPL 2020-06-13 23:12:17 +05:30
mach-exynos common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
mach-highbank common: Drop init.h from common header 2020-05-18 17:33:33 -04:00
mach-imx treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mach-integrator
mach-k3 arm: k3: use correct weak function name spl_board_prepare_for_linux 2020-07-13 20:58:34 +05:30
mach-keystone common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
mach-kirkwood treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mach-lpc32xx treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mach-mediatek common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
mach-meson treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mach-mvebu treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mach-omap2 treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mach-orion5x treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mach-owl Actions: OWL: Calculate SDRAM size 2020-07-07 16:09:22 -04:00
mach-qemu qemu: don't allow to select 32- and 64-bit 2020-04-24 10:51:32 -04:00
mach-rmobile treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mach-rockchip drivers: rename drivers to match compatible string 2020-07-09 18:57:22 -06:00
mach-s5pc1xx common: Drop net.h from common header 2020-05-18 17:33:31 -04:00
mach-snapdragon common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
mach-socfpga socfpga: Mark socfpga_fpga_add() as static inline in the non-FPGA case 2020-07-01 10:11:03 -04:00
mach-sti
mach-stm32 common: Drop init.h from common header 2020-05-18 17:33:33 -04:00
mach-stm32mp treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mach-sunxi sunxi: Silence warning about non-static inline function 2020-06-01 22:38:08 +05:30
mach-tegra treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mach-u8500 common: Drop init.h from common header 2020-05-18 17:33:33 -04:00
mach-uniphier treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mach-versal common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
mach-versatile
mach-zynq common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
mach-zynqmp common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
mach-zynqmp-r5 common: Drop init.h from common header 2020-05-18 17:33:33 -04:00
thumb1/include/asm/proc-armv
config.mk
Kconfig ARM: mx6: make CAAM usable on the i.MX6 boards 2020-07-16 11:20:08 +02:00
Kconfig.debug
Makefile rename symbol: CONFIG_STM32 -> CONFIG_ARCH_STM32 2020-05-15 14:47:35 -04:00