]> git.baikalelectronics.ru Git - uboot.git/commit
video: Add video_is_active function
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Mon, 15 Nov 2021 15:32:20 +0000 (16:32 +0100)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Tue, 30 Nov 2021 15:43:28 +0000 (16:43 +0100)
commit315abd60022e687536e9f07775408e9127366454
tree1102ca504f44bd6f92521f917df57c3dc344e933
parente0f2f88648079174344f4e5551fae3029f8a8c2d
video: Add video_is_active function

Add the helper function video_is_active() to test if one video device
is active.

This function can be used in board code to execute operation
only when the display is probed / really used.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
drivers/video/video-uclass.c
include/video.h