u-boot/drivers/video
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
..
bridge common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
exynos common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
fonts video: add wrappers for ttf type files to .gitignore 2020-01-02 17:45:42 +01:00
imx video: ipuv3: remove non-DM code 2020-06-18 19:38:50 +02:00
meson common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
rockchip drivers: rename drivers to match compatible string 2020-07-09 18:57:22 -06:00
stm32 video: stm32: stm32_dsi: copy DSI fields 2020-06-28 01:25:52 +02:00
sunxi common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
tegra124 common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
am335x-fb.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
am335x-fb.h video: omap: add support for DM/DTS 2020-03-03 13:08:14 +05:30
anx98xx-edp.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
anx9804.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
anx9804.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ati_ids.h drivers/video : move video drivers to drivers/video 2007-11-25 18:35:11 +01:00
ati_radeon_fb.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
ati_radeon_fb.h Coding Style cleanup: replace leading SPACEs by TABs 2013-10-14 16:06:54 -04:00
atmel_hlcdfb.c common: Drop linux/bug.h from common header 2020-05-18 21:19:23 -04:00
atmel_lcdfb.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
backlight-uclass.c panel: Expand the backlight support 2018-10-09 04:40:27 -06:00
backlight_gpio.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
bcm2835.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
broadwell_igd.c chromebook_samus: Enable the copy framebuffer 2020-07-09 12:33:24 +08:00
bus_vcxk.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
cfb_console.c treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
console_normal.c video: Update normal console to support copy buffer 2020-07-09 12:33:24 +08:00
console_rotate.c video: Update rotated console to support copy buffer 2020-07-09 12:33:24 +08:00
console_truetype.c video: Update truetype console to support copy buffer 2020-07-09 12:33:24 +08:00
coreboot.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
da8xx-fb.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
da8xx-fb.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
display-uclass.c video: display: use edid_get_timing_validate() variant to filter supported EDID modes 2019-07-29 00:21:49 +02:00
dsi-host-uclass.c dm: Add a dsi host uclass 2019-10-13 23:34:43 +02:00
dw_hdmi.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
dw_mipi_dsi.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
efi.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
formike.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
fsl_dcu_fb.c common: Drop net.h from common header 2020-05-18 17:33:31 -04:00
fsl_diu_fb.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
hitachi_tx18d42vm_lcd.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
hitachi_tx18d42vm_lcd.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
i915_reg.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ihs_video_out.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
ivybridge_igd.c chromebook_link: Enable the copy framebuffer 2020-07-09 12:33:24 +08:00
Kconfig x86: video: Support copy framebuffer with probed devices 2020-07-09 12:33:24 +08:00
ld9040.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
lg4573.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
logicore_dp_dpcd.h video_display: Add Xilinx LogiCore DP TX 2018-08-11 09:18:44 +02:00
logicore_dp_tx.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
logicore_dp_tx.h video_display: Add Xilinx LogiCore DP TX 2018-08-11 09:18:44 +02:00
logicore_dp_tx_regif.h video_display: Add Xilinx LogiCore DP TX 2018-08-11 09:18:44 +02:00
Makefile video: make backlight and panel drivers optional 2020-06-18 19:28:36 +02:00
mali_dp.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
mb862xx.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
mipi_dsi.c dm: core: Require users of devres to include the header 2020-02-05 19:33:46 -07:00
mvebu_lcd.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
mx3fb.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
mxsfb.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
omap3_dss.c omap3: allow dynamic selection of gfx_format 2013-03-08 16:41:13 -05:00
orisetech_otm8009a.c video: orisetech_otm8009a: fill characteristics of DSI data link 2020-06-28 01:28:03 +02:00
panel-uclass.c panel: Expand the backlight support 2018-10-09 04:40:27 -06:00
pwm_backlight.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
pxa_lcd.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
raydium-rm68200.c video: raydium_rm68200: fill characteristics of DSI data link 2020-06-28 01:26:55 +02:00
s6e8ax0.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
sandbox_dsi_host.c dm: Add a dsi host uclass 2019-10-13 23:34:43 +02:00
sandbox_osd.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
sandbox_osd.h video_osd: Add osd sandbox driver and tests 2018-09-28 18:26:52 +02:00
sandbox_sdl.c drivers: rename drivers to match compatible string 2020-07-09 18:57:22 -06:00
scf0403_lcd.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
simple_panel.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
simplefb.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
ssd2828.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
ssd2828.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
stb_truetype.h video: stb_truetype: simplify expression 2018-03-19 09:47:02 +01:00
tda19988.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
tegra.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
vesa.c minnowmax: Enable the copy framebuffer 2020-07-09 12:33:24 +08:00
vidconsole-uclass.c video: Add helpers for vidconsole for the copy framebuffer 2020-07-09 12:33:24 +08:00
video-uclass.c x86: video: Support copy framebuffer with probed devices 2020-07-09 12:33:24 +08:00
video_bmp.c video: Update the copy framebuffer when writing bitmaps 2020-07-09 12:33:24 +08:00
video_osd-uclass.c drivers: Add OSD uclass 2018-09-28 18:26:32 +02:00
videomodes.c videomodes: add helper function to convert from ctfb to display_timing 2020-04-18 12:54:43 +02:00
videomodes.h videomodes: add helper function to convert from ctfb to display_timing 2020-04-18 12:54:43 +02:00