diff options
author | Michal Simek <michal.simek@xilinx.com> | 2020-12-14 08:47:52 +0100 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2021-01-05 11:54:53 +0100 |
commit | 9de731f295c5f1aa0f55f30b076b94f9cb72428e (patch) | |
tree | 160e16135a87eadd5593839764e72c413a97a825 /include/video.h | |
parent | 17da310ac41424f056af3a88a0ff081925a027ff (diff) | |
download | u-boot-9de731f295c5f1aa0f55f30b076b94f9cb72428e.tar.gz |
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.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/video.h b/include/video.h index 7313b17f7c..1bfe6843a8 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 |