[U-Boot] [PATCH 19/25] video: Update video_set_default_colors() to support invert

sjg at google.com sjg at google.com
Thu Nov 22 20:20:35 UTC 2018


It is useful to be able to invert the colours in some cases so that the
text matches the background colour. Add a parameter to the function to
support this.

It is strange that function takes a private data structure from another
driver as an argument. It seems better to pass the device and have the
function internally work out how to find its required information.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 drivers/video/vidconsole-uclass.c |  2 +-
 drivers/video/video-uclass.c      | 27 +++++++++++++++++++--------
 include/video.h                   |  5 +++--
 3 files changed, 23 insertions(+), 11 deletions(-)

Applied to u-boot-dm/master, thanks!


More information about the U-Boot mailing list