u-boot/drivers
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
..
adc common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
ata sata_sil: Enable DM_PCI operation 2020-07-07 18:23:48 -04:00
axi common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
bios_emulator common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
block common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
board common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
bootcount bootcount_ext: Add Ext4 build dependency 2020-06-02 17:27:04 -04:00
bus bus: uniphier-system-bus: move hardware init from board files 2020-07-11 21:30:21 +09:00
cache common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
clk clk: imx8m: drop clk settings 2020-07-14 15:23:47 +08:00
core acpi: Enable ACPI table generation by default on x86 2020-07-17 14:32:24 +08:00
cpu riscv: cpu: check and append L1 cache to cpu features 2020-07-01 15:01:27 +08:00
crypto drivers: crypto: mod_exp_sw: Re-add DM_FLAG_PRE_RELOC 2020-05-19 14:01:47 -04:00
ddr treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
demo common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
dfu common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
dma dma: ti: k3-udma: Switch to k3_ringacc_request_rings_pair 2020-07-13 20:58:34 +05:30
fastboot common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
firmware firmware: zynqmp: Change panic logic in zynqmp_pmufw_load_config_object() 2020-06-24 13:07:57 +02:00
fpga arm64: xilinx: Print fpga error value in hex 2020-06-24 13:11:08 +02:00
gpio Merge https://gitlab.denx.de/u-boot/custodians/u-boot-x86 2020-07-17 08:04:48 -04:00
hwspinlock common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
i2c i2c: designware_i2c: Support ACPI table generation 2020-07-17 14:32:24 +08:00
input drivers: rename drivers to match compatible string 2020-07-09 18:57:22 -06:00
led common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
mailbox common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
memory SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
misc Merge https://gitlab.denx.de/u-boot/custodians/u-boot-x86 2020-07-17 08:04:48 -04:00
mmc treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mtd Merge branch 'master' of https://gitlab.denx.de/u-boot/custodians/u-boot-spi 2020-07-11 17:40:00 -04:00
net treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
nvme nvme: Invalidate dcache before submitting admin cmd 2020-06-23 14:43:23 -04:00
pch common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
pci treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
pci_endpoint common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
phy phy: omap-usb2-phy: disable phy charger detect 2020-06-16 17:00:02 +05:30
pinctrl Merge https://gitlab.denx.de/u-boot/custodians/u-boot-x86 2020-07-17 08:04:48 -04:00
power Merge https://gitlab.denx.de/u-boot/custodians/u-boot-x86 2020-07-17 08:04:48 -04:00
pwm pwm: Add PWM driver for SiFive SoC 2020-07-09 06:03:12 +02:00
qe treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
ram dtoc: extend dtoc to use struct driver_info when linking nodes 2020-07-09 22:00:29 -06:00
remoteproc common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
reset reset: Add Raspberry Pi 4 firmware reset controller 2020-07-10 11:49:28 +02:00
rng common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
rtc acpi: Support generation of I2C descriptor 2020-07-17 14:32:24 +08:00
scsi common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
serial Convert CONFIG_MXC_UART to Kconfig 2020-07-17 08:47:29 -04:00
smem common: Drop linux/bug.h from common header 2020-05-18 21:19:23 -04:00
soc soc: ti: k3-ringacc: Separate soc specific initialization 2020-07-13 20:58:34 +05:30
sound sound: Add an ACPI driver for Maxim MAX98357ac 2020-07-17 14:32:24 +08:00
spi Merge https://gitlab.denx.de/u-boot/custodians/u-boot-x86 2020-07-17 08:04:48 -04:00
spmi dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
sysreset common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
tee common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
thermal thermal: imx_scu_thermal: prevent boot hang with zero pdata 2020-05-22 13:29:25 +02:00
timer common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
tpm drivers: rename drivers to match compatible string 2020-07-09 18:57:22 -06:00
ufs common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
usb treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
video treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
virtio virtio: VIRTIO_RNG depends on DM_RNG 2020-06-05 04:04:41 +02:00
w1 common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
w1-eeprom common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
watchdog watchdog: imx: Support set timeout by wdt command 2020-07-16 11:20:21 +02:00
Kconfig bus: uniphier-system-bus: add UniPhier System Bus driver 2020-07-11 21:30:21 +09:00
Makefile bus: uniphier-system-bus: add UniPhier System Bus driver 2020-07-11 21:30:21 +09:00