Skip to content

Commit

Permalink
sm501fb: set transp.offset to 0 in 8bpp and 16bpp modes
Browse files Browse the repository at this point in the history
Even though it may not be strictly necessary transp.offset should probably be
0 when alpha channel is not available.

Signed-off-by: Ville Syrjala <syrjala@sci.fi>
Acked-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Ville Syrjala authored and Linus Torvalds committed Mar 5, 2008
1 parent fedbb36 commit 19d06ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/video/sm501fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ static int sm501fb_check_var(struct fb_var_screeninfo *var,
var->blue.length = var->bits_per_pixel;
var->blue.offset = 0;
var->transp.length = 0;
var->transp.offset = 0;

break;

Expand All @@ -294,6 +295,7 @@ static int sm501fb_check_var(struct fb_var_screeninfo *var,
var->green.offset = 5;
var->blue.offset = 0;
}
var->transp.offset = 0;

var->red.length = 5;
var->green.length = 6;
Expand Down

0 comments on commit 19d06ef

Please sign in to comment.