u-boot-brain/arch/arm/cpu/armv7
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
..
bcm235xx common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
bcm281xx common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
bcmcygnus common: Move reset_cpu() to the CPU header 2020-01-17 14:02:31 -05:00
bcmnsp common: Move reset_cpu() to the CPU header 2020-01-17 14:02:31 -05:00
iproc-common common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
kona-common common: Drop net.h from common header 2020-05-18 17:33:31 -04:00
ls102xa treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
s5p-common common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
stv0991 common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
sunxi common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
vf610 treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
Kconfig Convert CONFIG_ARMV7_PSCI_1_0 and CONFIG_ARMV7_PSCI_0_2 to Kconfig 2020-07-17 08:51:29 -04:00
Makefile efi_loader: refactor switch to non-secure mode 2019-02-13 09:40:06 +01:00
arch_timer.c common: Drop init.h from common header 2020-05-18 17:33:33 -04:00
cache_v7.c common: Drop net.h from common header 2020-05-18 17:33:31 -04:00
cache_v7_asm.S SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
config.mk SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cp15.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cpu.c common: Move enable/disable_interrupts out of common.h 2019-12-02 18:25:01 -05:00
exception_level.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
lowlevel_init.S SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mpu_v7r.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
nonsec_virt.S ARM: HYP/non-sec: migrate stack 2018-07-25 14:57:43 +02:00
psci-common.c psci: arm: remove armv7 function psci_save_target_pc 2018-05-07 11:52:55 -04:00
psci.S ARM: PSCI: initialize stack pointer on secondary CPUs 2018-07-23 10:53:12 +02:00
sctlr.S arm: armv7: allow unaligned memory access 2018-06-03 15:27:21 +02:00
smccc-call.S arm: Leave smccc calls in .text when efi_loader=n 2019-02-13 09:40:06 +01:00
start.S CONFIG_SPL_SYS_[DI]CACHE_OFF: add 2019-05-18 08:15:35 -04:00
syslib.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
virt-dt.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
virt-v7.c common: Drop net.h from common header 2020-05-18 17:33:31 -04:00