diff options
author | Matej Dujava <mdujava@kocurkovo.cz> | 2020-04-30 23:09:24 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-05-05 13:23:28 +0300 |
commit | fa90133377f4a7f15a937df6ad55133bb57c5665 (patch) | |
tree | c8982a3b640814565a99819a990411b0b70ae3d4 /drivers/staging/sm750fb | |
parent | a4338ed2e1cf724563956ec5f91deeaabfedbe23 (diff) | |
download | linux-fa90133377f4a7f15a937df6ad55133bb57c5665.tar.xz |
staging: sm750fb: add missing case while setting FB_VISUAL
Switch statement does not contain all cases: 8, 16, 24, 32.
This patch will add missing one (24)
Fixes: 81dee67e215b ("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>
Diffstat (limited to 'drivers/staging/sm750fb')
-rw-r--r-- | drivers/staging/sm750fb/sm750.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm750.c index e478290b60a8..39e610cc3c06 100644 --- a/drivers/staging/sm750fb/sm750.c +++ b/drivers/staging/sm750fb/sm750.c @@ -900,6 +900,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; |