u-boot/drivers/mmc
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
..
am654_sdhci.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
arm_pl180_mmci.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
arm_pl180_mmci.h mmc: arm_pl180_mmci: Sync compatible with kernel 2019-04-23 15:31:30 +02:00
aspeed_sdhci.c dm: core: Require users of devres to include the header 2020-02-05 19:33:46 -07:00
atmel_sdhci.c mmc: atmel_sdhci: Add sam9x60-sdhci compatibility string 2019-10-08 09:16:11 +03:00
bcm2835_sdhci.c mmc: bcm283x: fix int to pointer cast 2020-07-10 14:10:43 -04:00
bcm2835_sdhost.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
bcmstb_sdhci.c mmc: bcm: fix uninitialized pointer deref on probe 2019-08-09 13:45:25 +08:00
ca_dw_mmc.c mmc: ca_dw_mmc: Misc cleanup of driver 2020-06-15 09:45:22 +08:00
davinci_mmc.c treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
dw_mmc.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
exynos_dw_mmc.c ARM: Odroid XU3: Modify exynos dw_mmc driver to support Odroid XU3 in DM MMC 2018-08-06 10:53:53 +09:00
fsl_esdhc.c treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
fsl_esdhc_imx.c treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
fsl_esdhc_spl.c common: Move hang() to the same header as panic() 2020-01-17 17:53:40 -05:00
ftsdc010_mci.c dtoc: extend dtoc to use struct driver_info when linking nodes 2020-07-09 22:00:29 -06:00
ftsdc010_mci.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
gen_atmel_mci.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
hi6220_dw_mmc.c mmc: Add support for HI3660 SoC reusing hi6220_dw_mmc driver 2019-08-11 16:43:41 -04:00
iproc_sdhci.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
jz_mmc.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
Kconfig kconfig: mmc: move pxa_mmc_generic to kconfig 2020-06-30 11:13:11 -04:00
kona_sdhci.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
Makefile drivers: mmc: rpmb: do not build for SPL 2020-04-22 20:41:57 +08:00
meson_gx_mmc.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
mmc-uclass.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
mmc.c treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mmc_boot.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
mmc_legacy.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
mmc_private.h mmc: add mmc_poll_for_busy() and change the purpose of mmc_send_status() 2019-07-15 10:16:49 +08:00
mmc_spi.c mmc_spi: generate R1b response for erase and stop transmission command 2020-07-14 16:19:47 +08:00
mmc_write.c common: Drop part.h from common header 2020-05-18 17:33:33 -04:00
msm_sdhci.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
mtk-sd.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
mv_sdhci.c mmc: mv_sdhci: fix uninitialized pointer deref on probe 2019-07-31 15:31:36 +08:00
mvebu_mmc.c treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mxcmmc.c treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mxsmmc.c treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
omap_hsmmc.c mmc: omap_hsmmc: Set 3.3V for IO voltage on all places 2020-07-13 20:58:34 +05:30
pci_mmc.c acpi: mmc: Generate ACPI info for the PCI SD Card 2020-07-17 14:32:24 +08:00
pic32_sdhci.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pxa_mmc_gen.c arm: pxa: mmc: add driver model support 2020-06-30 11:13:11 -04:00
renesas-sdhi.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
rockchip_dw_mmc.c dtoc: extend dtoc to use struct driver_info when linking nodes 2020-07-09 22:00:29 -06:00
rockchip_sdhci.c dtoc: extend dtoc to use struct driver_info when linking nodes 2020-07-09 22:00:29 -06:00
rpmb.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
s5p_sdhci.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
sandbox_mmc.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
sdhci-cadence.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
sdhci.c mmc: sdhci: Fix HISPD bit handling 2020-06-24 14:05:30 +08:00
sh_mmcif.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
sh_mmcif.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sh_sdhi.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
snps_dw_mmc.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
socfpga_dw_mmc.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
sti_sdhci.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
stm32_sdmmc2.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
sunxi_mmc.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
tangier_sdhci.c mmc: tangier_sdhci: fix uninitialized pointer deref on probe 2019-08-09 13:45:25 +08:00
tegra_mmc.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
tmio-common.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
tmio-common.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
uniphier-sd.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
xenon_sdhci.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
zynq_sdhci.c mmc: zynq_sdhci: Remove global pointer 2020-06-24 13:07:57 +02:00