summaryrefslogtreecommitdiff
path: root/drivers/video/vidconsole-uclass.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2018-11-07 01:21:36 +0300
committerSimon Glass <sjg@chromium.org>2018-11-21 05:14:22 +0300
commitb9f210a35c39a191ca375e541e09686a3303e428 (patch)
treec05683e349d9457917c606225d77fdaac0a1aeae /drivers/video/vidconsole-uclass.c
parent4b6dbaa3073adb24f8c67f89d0f70dbcf00808b9 (diff)
downloadu-boot-b9f210a35c39a191ca375e541e09686a3303e428.tar.xz
video: Update video_set_default_colors() to support invert
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@chromium.org>
Diffstat (limited to 'drivers/video/vidconsole-uclass.c')
-rw-r--r--drivers/video/vidconsole-uclass.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/vidconsole-uclass.c b/drivers/video/vidconsole-uclass.c
index 1874887f2f..d7568bc79a 100644
--- a/drivers/video/vidconsole-uclass.c
+++ b/drivers/video/vidconsole-uclass.c
@@ -344,7 +344,7 @@ static void vidconsole_escape_char(struct udevice *dev, char ch)
switch (val) {
case 0:
/* all attributes off */
- video_set_default_colors(vid_priv);
+ video_set_default_colors(dev->parent, false);
break;
case 1:
/* bold */