u-boot/board/freescale/common
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
..
p_corenet treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
arm_sleep.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
cadmus.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cadmus.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cds_pci_ft.c treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
cds_via.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cmd_esbc_validate.c command: Remove the cmd_tbl_t typedef 2020-05-18 18:36:55 -04:00
dcu_sii9022a.c dm: arm: ls1021a: add i2c DM support 2020-02-04 16:20:25 +05:30
dcu_sii9022a.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
diu_ch7301.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
diu_ch7301.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
eeprom.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
emc2305.c boards: lx2160a: Add support of I2C driver model 2019-08-22 09:07:35 +05:30
emc2305.h armv8: emc2305: add support for fan controller 2019-02-19 10:26:43 +05:30
fman.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
fman.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
fsl_chain_of_trust.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
fsl_validate.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
ics307_clk.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
ics307_clk.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
idt8t49n222a_serdes_clk.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
idt8t49n222a_serdes_clk.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Kconfig freescale/layerscape: Rename the config CONFIG_SECURE_BOOT name 2019-11-08 16:32:08 +05:30
ls102xa_stream_id.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Makefile freescale/layerscape: Rename the config CONFIG_SECURE_BOOT name 2019-11-08 16:32:08 +05:30
mc34vr500.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
mpc85xx_sleep.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
ngpixis.c command: Remove the cmd_tbl_t typedef 2020-05-18 18:36:55 -04:00
ngpixis.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ns_access.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
pfuze.c pfuze: Fix the pmic_get() parameter in the DM case 2019-12-27 12:13:11 +01:00
pfuze.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pixis.c command: Remove the cmd_tbl_t typedef 2020-05-18 18:36:55 -04:00
pixis.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pq-mds-pib.c MPC832XEMDS: Migrate to CONFIG_TARGET_MPC832XEMDS 2019-05-21 07:51:40 +02:00
pq-mds-pib.h mpc83xx: Split PIB init code from pci.c and add Qoc3 ATM card support 2007-08-16 23:12:11 -05:00
qixis.c command: Remove the cmd_tbl_t typedef 2020-05-18 18:36:55 -04:00
qixis.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sdhc_boot.c board: sdhc: Use block layer to read from mmc 2019-11-25 11:54:27 +05:30
sgmii_riser.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
sgmii_riser.h Fixup SGMII PHY ids in the device tree 2009-02-16 18:05:54 -06:00
sleep.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
spl.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sys_eeprom.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
via.h Move the MPC8541/MPC8555/MPC8548 CDS board under board/freescale. 2007-12-11 22:34:20 -06:00
vid.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
vid.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
vsc3316_3308.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
vsc3316_3308.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
zm7300.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
zm7300.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00