[PATCH 12/26] video: Add helpers for vidconsole for the copy framebuffer

Anatolij Gustschin agust at denx.de
Fri May 22 17:09:09 CEST 2020


Hi Simon,

On Tue, 19 May 2020 17:10:44 -0600
Simon Glass sjg at chromium.org wrote:

> Add a convenience function to call video_sync_copy() for a vidconsole.
> Also add a memmove() helper, which does the memmove() as well as the sync.
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>

Reviewed-by: Anatolij Gustschin <agust at denx.de>

Nit below

...
> +int vidconsole_memmove(struct udevice *dev, void *dst, const void *src,
> +		       int size)
> +{
> +	int ret;
> +
> +	memmove(dst, src, size);
> +	ret = vidconsole_sync_copy(dev, dst, dst + size);
> +	if (ret)
> +		return ret;

here we can also do

	return vidconsole_sync_copy(dev, dst, dst + size);
> +
> +	return 0;
> +}
> +#endif


More information about the U-Boot mailing list