Correct SPL use of VIDEO_BPP16

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>
This commit is contained in:
Simon Glass 2023-02-05 17:55:32 -07:00 committed by Tom Rini
parent 2fe2ac139f
commit 72129e088a

View File

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