]> git.dujemihanovic.xyz Git - u-boot.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)
commit2e2e6d8cacbc80f2da0ce8f1afca5ed24020b331
tree1102ca504f44bd6f92521f917df57c3dc344e933
parentfded97adcedb4c77927d06aad7a7d816059eeeab
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