]> git.dujemihanovic.xyz Git - u-boot.git/commit
video: Move console colours to the video uclass
authorSimon Glass <sjg@chromium.org>
Thu, 6 Oct 2022 14:36:03 +0000 (08:36 -0600)
committerAnatolij Gustschin <agust@denx.de>
Sun, 30 Oct 2022 07:43:24 +0000 (08:43 +0100)
commita032e4b55ea717fb931dd0d4754cf72b9bafe2f4
tree503fc51df906b9bb0920be7d241af3495fc1883b
parentdb2c8ed3a5850e64fcf612d099ce7b22c480a752
video: Move console colours to the video uclass

At present these are attached to vidconsole which means that the video
uclass requires that a console is enabled. This is not the intention.
The colours are a reasonable way of indexing common colours in any case,
so move them to the video uclass instead.

Rename vid_console_color() to video_index_to_colour() now that it is more
generic. Also fix the inconsistent spelling in these functions.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/video/vidconsole-uclass.c
drivers/video/video-uclass.c
include/video.h
include/video_console.h