]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Correct SPL use of VIDEO_BPP16
authorSimon Glass <sjg@chromium.org>
Mon, 6 Feb 2023 00:55:32 +0000 (17:55 -0700)
committerTom Rini <trini@konsulko.com>
Fri, 10 Feb 2023 12:41:40 +0000 (07:41 -0500)
This converts 1 usage of this option to the non-SPL form, since there is
no SPL_VIDEO_BPP16 defined in Kconfig

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

index 0ce376ca3f144ed37b2d286f88d6c70e10acf971..f36970e04207c827b1d9887945256a86ffc43ebf 100644 (file)
@@ -196,7 +196,7 @@ u32 video_index_to_colour(struct video_priv *priv, unsigned int idx)
 {
        switch (priv->bpix) {
        case VIDEO_BPP16:
-               if (CONFIG_IS_ENABLED(VIDEO_BPP16)) {
+               if (IS_ENABLED(CONFIG_VIDEO_BPP16)) {
                        return ((colours[idx].r >> 3) << 11) |
                               ((colours[idx].g >> 2) <<  5) |
                               ((colours[idx].b >> 3) <<  0);