u-boot/board/freescale
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
..
common treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
corenet_ds treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
imx8mm_evk imx8m: Refactor the OPTEE memory removal 2020-07-14 15:23:48 +08:00
imx8mn_evk imx8m: Refactor the OPTEE memory removal 2020-07-14 15:23:48 +08:00
imx8mp_evk power: pmic_pca9450: fix PCA9450A I2C address 2020-07-16 11:20:14 +02:00
imx8mq_evk treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
imx8qm_mek treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
imx8qxp_mek treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
imxrt1020-evk common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
imxrt1050-evk common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
ls1012afrdm treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
ls1012aqds treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
ls1012ardb treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
ls1021aiot treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
ls1021aqds treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
ls1021atsn treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
ls1021atwr treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
ls1028a treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
ls1043aqds treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
ls1043ardb treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
ls1046afrwy treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
ls1046aqds treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
ls1046ardb treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
ls1088a treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
ls2080a treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
ls2080aqds treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
ls2080ardb treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
lx2160a treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
m547xevb common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
m548xevb common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
m5208evbe common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
m5235evb common: Move testdram() into init.h 2020-01-17 14:02:35 -05:00
m5249evb common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
m5253demo treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
m5272c3 common: Move testdram() into init.h 2020-01-17 14:02:35 -05:00
m5275evb common: Move testdram() into init.h 2020-01-17 14:02:35 -05:00
m5282evb common: Drop init.h from common header 2020-05-18 17:33:33 -04:00
m5329evb common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
m5373evb common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
m52277evb common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
m53017evb common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
m54418twr common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
m54451evb common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
m54455evb common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
mpc832xemds treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mpc837xemds treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mpc837xerdb treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mpc8308rdb treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mpc8313erdb treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mpc8315erdb treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mpc8323erdb treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mpc8349emds treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mpc8349itx treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mpc8541cds treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mpc8544ds treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mpc8548cds treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mpc8555cds treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mpc8568mds treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mpc8569mds treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mpc8572ds treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mpc8610hpcd treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mpc8641hpcn treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mx6memcal common: Drop init.h from common header 2020-05-18 17:33:33 -04:00
mx6qarm2 treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mx6sabreauto treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mx6sabresd treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mx6slevk treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mx6sllevk mx6sllevk: Fix the pmic_get() parameter in the DM case 2020-01-07 10:26:57 +01:00
mx6sxsabreauto treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mx6sxsabresd treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mx6ul_14x14_evk treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mx6ullevk Merge branch 'master' of https://gitlab.denx.de/u-boot/custodians/u-boot-imx 2020-04-20 08:45:27 -04:00
mx7dsabresd common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
mx7ulp_evk treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mx23evk treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mx25pdk treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mx28evk treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mx35pdk treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mx51evk treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mx53ard treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mx53evk treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mx53loco treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mx53smd treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
p1_p2_rdb_pc treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
p1010rdb treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
p1023rdb treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
p2041rdb treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
qemu-ppce500 treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
s32v234evb treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
t4rdb treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
t102xrdb treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
t104xrdb treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
t208xqds treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
t208xrdb treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
vf610twr treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00