u-boot-brain/drivers/usb/gadget
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
..
udc dma-mapping: move dma_map_(un)single() to <linux/dma-mapping.h> 2020-02-19 21:27:30 +08:00
at91_udc.c common: Drop linux/bug.h from common header 2020-05-18 21:19:23 -04:00
at91_udc.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
atmel_usba_udc.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
atmel_usba_udc.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
bcm_udc_otg_phy.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
bcm_udc_otg.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ci_udc.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
ci_udc.h ci_udc: Update the ci_udc driver to support bulk transfers 2015-05-29 12:41:04 +02:00
composite.c common: Drop linux/bug.h from common header 2020-05-18 21:19:23 -04:00
config.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
core.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
designware_udc.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
dwc2_udc_otg_phy.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
dwc2_udc_otg_priv.h usb: dwc2_udc_otg: Read MAX_HW_ENDPOINT from HWCFG4 register 2019-04-21 10:26:52 +02:00
dwc2_udc_otg_regs.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
dwc2_udc_otg_xfer_dma.c common: Drop linux/bug.h from common header 2020-05-18 21:19:23 -04:00
dwc2_udc_otg.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
ep0.c common: Move serial_printf() to the serial header 2019-12-02 18:23:10 -05:00
ep0.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
epautoconf.c usb: gadget: Add match_ep() op to usb_gadget_ops 2019-11-07 00:24:59 +01:00
ether.c treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
f_dfu.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
f_dfu.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
f_fastboot.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
f_mass_storage.c common: Drop linux/bug.h from common header 2020-05-18 21:19:23 -04:00
f_rockusb.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
f_sdp.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
f_thor.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
f_thor.h gadget: f_thor: update to support more than 4GB file as thor 5.0 2018-05-18 13:17:30 +02:00
fotg210.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
g_dnl.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
gadget_chips.h usb: gadget: Add gadget_is_cdns3() macro 2019-11-07 00:24:59 +01:00
Kconfig usb: gadget: sdp: use CONFIG_SDP_LOADADDR as default load address 2020-05-03 15:31:34 +02:00
Makefile spl: Kconfig: Drop the _SUPPORT postfix from SPL_DFU 2019-01-26 08:13:54 -05:00
ndis.h USB: Add USB RNDIS gadget protocol 2011-02-19 20:32:37 +01:00
pxa25x_udc.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
pxa25x_udc.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pxa27x_udc.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
rndis.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
rndis.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
storage_common.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
usbstring.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00