projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fedbb36
)
sm501fb: set transp.offset to 0 in 8bpp and 16bpp modes
author
Ville Syrjala
<
[email protected]
>
Tue, 4 Mar 2008 22:28:48 +0000
(14:28 -0800)
committer
Linus Torvalds
<
[email protected]
>
Wed, 5 Mar 2008 00:35:13 +0000
(16:35 -0800)
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 <
[email protected]
>
Acked-by: Ben Dooks <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/video/sm501fb.c
patch
|
blob
|
history
diff --git
a/drivers/video/sm501fb.c
b/drivers/video/sm501fb.c
index 3a98d5a86af1e6d33d0adb6fa4181f6e3f7c5c4b..f49287c88abe2af349a45fc623bedf0100a4828a 100644
(file)
--- a/
drivers/video/sm501fb.c
+++ b/
drivers/video/sm501fb.c
@@
-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;
@@
-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;