mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 16:24:13 +08:00
staging: sm750fb: add missing case while setting FB_VISUAL
[ Upstream commitfa90133377
] Switch statement does not contain all cases: 8, 16, 24, 32. This patch will add missing one (24) Fixes:81dee67e21
("staging: sm750fb: add sm750 to staging") Signed-off-by: Matej Dujava <mdujava@kocurkovo.cz> Link: https://lore.kernel.org/r/1588277366-19354-2-git-send-email-mdujava@kocurkovo.cz Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
2428682e3f
commit
4d30daf901
@ -898,6 +898,7 @@ static int lynxfb_set_fbinfo(struct fb_info *info, int index)
|
||||
fix->visual = FB_VISUAL_PSEUDOCOLOR;
|
||||
break;
|
||||
case 16:
|
||||
case 24:
|
||||
case 32:
|
||||
fix->visual = FB_VISUAL_TRUECOLOR;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user