projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fe2ac1
)
Correct SPL use of VIDEO_BPP16
author
Simon Glass
<sjg@chromium.org>
Mon, 6 Feb 2023 00:55:32 +0000
(17:55 -0700)
committer
Tom 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
patch
|
blob
|
history
diff --git
a/drivers/video/video-uclass.c
b/drivers/video/video-uclass.c
index 0ce376ca3f144ed37b2d286f88d6c70e10acf971..f36970e04207c827b1d9887945256a86ffc43ebf 100644
(file)
--- a/
drivers/video/video-uclass.c
+++ b/
drivers/video/video-uclass.c
@@
-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);