u-boot/arch/powerpc/cpu/mpc85xx
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
..
b4860_ids.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
b4860_serdes.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
bsc9132_serdes.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
c29x_serdes.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
cmd_errata.c command: Remove the cmd_tbl_t typedef 2020-05-18 18:36:55 -04:00
commproc.c common: Drop asm_offsets.h from common header 2020-05-18 21:19:23 -04:00
config.mk mpc85xx: Add support for -msingle-pic-base 2019-01-23 10:48:48 -08:00
cpu.c treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
cpu_init.c board/freescale: add the DM_ETH changes for the PPC DPAA platforms 2020-06-03 12:14:28 +05:30
cpu_init_early.c common: Drop asm_offsets.h from common header 2020-05-18 21:19:23 -04:00
ether_fcc.c treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
fdt.c treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
fsl_corenet2_serdes.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
fsl_corenet2_serdes.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
fsl_corenet_serdes.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
fsl_corenet_serdes.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
interrupts.c common: Drop asm/ptrace.h from common header 2020-05-18 21:19:23 -04:00
Kconfig powerpc: Remove TWR-P1025_defconfig board 2020-06-18 21:47:08 +05:30
liodn.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
Makefile SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mp.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
mp.h powerpc/mpc85xx: Rewrite spin table to comply with ePAPR v1.1 2012-10-22 14:31:32 -05:00
mpc8536_serdes.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
mpc8544_serdes.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
mpc8548_serdes.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
mpc8568_serdes.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
mpc8569_serdes.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
mpc8572_serdes.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
p1010_serdes.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
p1021_serdes.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
p1022_serdes.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
p1023_serdes.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
p2020_serdes.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
p2041_ids.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
p2041_serdes.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
p3041_ids.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
p3041_serdes.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
p4080_ids.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
p4080_serdes.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
p5020_ids.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
p5020_serdes.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
p5040_ids.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
p5040_serdes.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pci.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
portals.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
qe_io.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
release.S powerpc: mpc85xx: Improve Work-around for Erratum A005125 2018-05-09 09:17:51 -05:00
resetvec.S Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
serial_scc.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
speed.c common: Move clock functions into a new file 2020-01-17 13:27:29 -05:00
spl_minimal.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
start.S common: Move relocate_code() to init.h 2020-01-17 13:26:49 -05:00
t1024_ids.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
t1024_serdes.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
t1040_ids.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
t1040_serdes.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
t2080_ids.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
t2080_serdes.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
t4240_ids.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
t4240_serdes.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
tlb.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
traps.c common: Drop asm/ptrace.h from common header 2020-05-18 21:19:23 -04:00
u-boot-nand.lds powerpc/dts: Define '_end' symbol in mpc85xx U-Boot lds files 2018-09-27 10:13:24 -07:00
u-boot-nand_spl.lds powerpc/dts: Define '_end' symbol in mpc85xx U-Boot lds files 2018-09-27 10:13:24 -07:00
u-boot-spl.lds linker: Modify linker scripts to be more generic 2019-01-26 22:55:53 -05:00
u-boot.lds powerpc/dts: Define '_end' symbol in mpc85xx U-Boot lds files 2018-09-27 10:13:24 -07:00