diff options
author | Simon Glass | 2018-10-01 12:22:26 -0600 |
---|---|---|
committer | Simon Glass | 2018-10-09 04:40:27 -0600 |
commit | c6ebd011bb27750263e8dd62e33ed5cdd49dc88e (patch) | |
tree | 887cc94254faacf2e03884c80dfa24ce3b41ad59 /include/video.h | |
parent | 25a3845d2b0f4808b5fb75f5e059f94b732b7ada (diff) |
video: Adjust video_clear() to return an error
All driver-model operation should return an error code. Adjust this
function to do so also.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'include/video.h')
-rw-r--r-- | include/video.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/video.h b/include/video.h index cd5558f86eb..ab416c1cfac 100644 --- a/include/video.h +++ b/include/video.h @@ -120,8 +120,9 @@ int video_reserve(ulong *addrp); * video_clear() - Clear a device's frame buffer to background color. * * @dev: Device to clear + * @return 0 */ -void video_clear(struct udevice *dev); +int video_clear(struct udevice *dev); /** * video_sync() - Sync a device's frame buffer with its hardware |