aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorVille Syrjala <syrjala@sci.fi>2008-03-04 17:28:48 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-03-04 19:35:13 -0500
commit19d06eff4e0d77fc1a15c92f845f1916e2d10dd0 (patch)
tree32fed5a54e7303836adfd9b868d27363335fb99a /drivers
parentfedbb3625b3c16441de1378ca00a74e9c1733289 (diff)
sm501fb: set transp.offset to 0 in 8bpp and 16bpp modes
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/sm501fb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/video/sm501fb.c b/drivers/video/sm501fb.c
index 3a98d5a86af1..f49287c88abe 100644
--- a/drivers/video/sm501fb.c
+++ b/drivers/video/sm501fb.c
@@ -281,6 +281,7 @@ static int sm501fb_check_var(struct fb_var_screeninfo *var,
281 var->blue.length = var->bits_per_pixel; 281 var->blue.length = var->bits_per_pixel;
282 var->blue.offset = 0; 282 var->blue.offset = 0;
283 var->transp.length = 0; 283 var->transp.length = 0;
284 var->transp.offset = 0;
284 285
285 break; 286 break;
286 287
@@ -294,6 +295,7 @@ static int sm501fb_check_var(struct fb_var_screeninfo *var,
294 var->green.offset = 5; 295 var->green.offset = 5;
295 var->blue.offset = 0; 296 var->blue.offset = 0;
296 } 297 }
298 var->transp.offset = 0;
297 299
298 var->red.length = 5; 300 var->red.length = 5;
299 var->green.length = 6; 301 var->green.length = 6;