u-boot/drivers/video
Michal Suchanek c726fc01cf dm: treewide: Use uclass_first_device_err when accessing one device
There is a number of users that use uclass_first_device to access the
first and (assumed) only device in uclass.

Some check the return value of uclass_first_device and also that a
device was returned which is exactly what uclass_first_device_err does.

Some are not checking that a device was returned and can potentially
crash if no device exists in the uclass. Finally there is one that
returns NULL on error either way.

Convert all of these to use uclass_first_device_err instead, the return
value will be removed from uclass_first_device in a later patch.

Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
2022-10-17 21:17:12 -06:00
..
bridge doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
exynos dm: treewide: Use uclass_first_device_err when accessing one device 2022-10-17 21:17:12 -06:00
fonts video: add wrappers for ttf type files to .gitignore 2020-01-02 17:45:42 +01:00
imx video: ipuv3: Fix error handling when getting the display 2022-10-17 21:17:12 -06:00
meson Merge https://source.denx.de/u-boot/custodians/u-boot-marvell 2022-01-20 12:40:20 -05:00
nexell video: add nexell video driver (display/video driver) 2020-07-29 08:43:40 -04:00
rockchip rockchip: video: mipi: add more compatible strings for rk3288/rk3399 2022-04-18 11:25:13 +08:00
stm32 dm: treewide: Use uclass_first_device_err when accessing one device 2022-10-17 21:17:12 -06:00
sunxi video: Drop video_fb header 2022-03-28 20:16:46 +02:00
tegra124 dm: treewide: Use uclass_first_device_err when accessing one device 2022-10-17 21:17:12 -06:00
ti doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
anx98xx-edp.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
anx9804.c sunxi: video: Convert panel I2C to use DM_I2C 2021-10-12 11:01:17 +01:00
anx9804.h sunxi: video: Convert panel I2C to use DM_I2C 2021-10-12 11:01:17 +01:00
atmel_hlcdfb.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
atmel_lcdfb.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
backlight_gpio.c Prepare v2021.01-rc5 2021-01-05 16:20:26 -05:00
backlight-uclass.c dm: define LOG_CATEGORY for all uclass 2021-07-06 10:38:03 -06:00
bcm2835.c video: arm: rpi: Add brcm,bcm2711-hdmi0 compatible 2021-02-18 11:59:08 +01:00
broadwell_igd.c video: Rename structs and functions to avoid VBE 2022-08-12 08:14:23 -04:00
bus_vcxk.c WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -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 doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
coreboot.c video: Rename structs and functions to avoid VBE 2022-08-12 08:14:23 -04:00
display-uclass.c dm: define LOG_CATEGORY for all uclass 2021-07-06 10:38:03 -06:00
dsi-host-uclass.c dm: define LOG_CATEGORY for all uclass 2021-07-06 10:38:03 -06:00
dw_hdmi.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
dw_mipi_dsi.c gpio: stm32: create include file for driver private data 2021-11-10 17:03:36 +01:00
efi.c video: Rename structs and functions to avoid VBE 2022-08-12 08:14:23 -04:00
hitachi_tx18d42vm_lcd.c sunxi: gpio: Remove name_to_gpio macro 2021-10-11 10:46:44 +01: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
hx8238d.c drivers: video: hx8238 fix build bug 2021-07-15 17:56:03 +05:30
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 dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
ivybridge_igd.c video: Rename structs and functions to avoid VBE 2022-08-12 08:14:23 -04:00
Kconfig video: Migrate exynos display options to Kconfig 2022-06-28 17:04:38 -04:00
ld9040.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
lg4573.c dm: Rename DM_GET_DRIVER() to DM_DRIVER_GET() 2021-01-05 12:26:35 -07:00
logicore_dp_dpcd.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
logicore_dp_tx.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
logicore_dp_tx.h video_display: Add Xilinx LogiCore DP TX 2018-08-11 09:18:44 +02:00
Makefile arm: Remove PXA architecture support 2022-07-07 09:29:08 -04:00
mali_dp.c dm: treewide: Use uclass_first_device_err when accessing one device 2022-10-17 21:17:12 -06:00
mcde_simple.c video: Add simple driver for ST-Ericsson MCDE with pre-configured display 2021-08-01 21:40:51 +02: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 dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
mxsfb.c video: mxs: Drop old video code 2022-03-28 20:18:26 +02:00
nexell_display.c video: Drop references to CONFIG_VIDEO et al 2022-03-28 20:17:07 +02:00
omap3_dss.c video: Drop video_fb header 2022-03-28 20:16:46 +02:00
orisetech_otm8009a.c dm: treewide: Rename ofdata_to_platdata() to of_to_plat() 2020-12-13 16:51:09 -07:00
panel-uclass.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
pwm_backlight.c video: Check return value in pwm_backlight_of_to_plat() 2021-07-15 18:42:05 -04:00
raydium-rm68200.c dm: treewide: Rename ofdata_to_platdata() to of_to_plat() 2020-12-13 16:51:09 -07:00
sandbox_dsi_host.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
sandbox_osd.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
sandbox_osd.h video_osd: Add osd sandbox driver and tests 2018-09-28 18:26:52 +02:00
sandbox_sdl.c video: Support showing the U-Boot logo 2021-12-26 23:32:46 +01:00
scf0403_lcd.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
seps525.c dm: fix build errors generated by last merges 2021-01-15 13:12:38 -05:00
simple_panel.c video: simple_panel: Add boe,nv101wxmn51 display 2021-02-19 22:26:57 +01:00
simplefb.c video: simplefb: Add 30bpp support 2021-10-09 18:48:25 +02: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 driver: video: Check allocated pointers 2022-06-25 08:10:21 +02:00
tda19988.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
tdo-tl070wsh30.c WS cleanup: remove trailing white space 2021-09-30 08:08:56 -04:00
tegra.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
u_boot_logo.bmp video: Support showing the U-Boot logo 2021-12-26 23:32:46 +01:00
vesa.c video: Rename structs and functions to avoid VBE 2022-08-12 08:14:23 -04:00
vidconsole-uclass.c video: Add 30bpp support 2021-10-09 18:43:51 +02:00
video_bmp.c cyclic: Use schedule() instead of WATCHDOG_RESET() 2022-09-18 10:26:33 +02:00
video_osd-uclass.c dm: define LOG_CATEGORY for all uclass 2021-07-06 10:38:03 -06:00
video-uclass.c Merge branch 'next' 2022-04-04 10:48:44 -04:00
videomodes.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
videomodes.h videomodes: add helper function to convert from ctfb to display_timing 2020-04-18 12:54:43 +02:00
zynqmp_dpsub.c video: Add skeleton driver for ZynqMP Display port driver 2022-03-09 12:35:49 +01:00