aboutsummaryrefslogtreecommitdiff
path: root/include/video.h
diff options
context:
space:
mode:
authorMichal Simek2020-12-14 08:47:52 +0100
committerMichal Simek2021-01-05 11:54:53 +0100
commit9de731f295c5f1aa0f55f30b076b94f9cb72428e (patch)
tree160e16135a87eadd5593839764e72c413a97a825 /include/video.h
parent17da310ac41424f056af3a88a0ff081925a027ff (diff)
video: Let video_sync to return error value
This patch is preparation for follow up one to support cases where synchronization can fail. Suggested-by: Simon Glass <sjg@chromium.org> Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/video.h')
-rw-r--r--include/video.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/video.h b/include/video.h
index 7313b17f7ce..1bfe6843a80 100644
--- a/include/video.h
+++ b/include/video.h
@@ -155,11 +155,13 @@ int video_clear(struct udevice *dev);
* @force: True to force a sync even if there was one recently (this is
* very expensive on sandbox)
*
+ * @return: 0 always
+ *
* Some frame buffers are cached or have a secondary frame buffer. This
* function syncs these up so that the current contents of the U-Boot frame
* buffer are displayed to the user.
*/
-void video_sync(struct udevice *vid, bool force);
+int video_sync(struct udevice *vid, bool force);
/**
* video_sync_all() - Sync all devices' frame buffers with there hardware