matroxfb_base.c - a little fix
PATCH 1/1 matroxfb_base.c - a little fix
So, below is the little fix. It's self-explanatory. Matrox's fb can't be compiled without it. Petr, please, apply it.
video/matrox/matroxfb_base.c renamed from video/matrox/matroxfb_base.c.orig +1 -1
@@ -1789,7 +1789,7 @@strcpy (ACCESS_FBINFO (fbcon.modename),"MATROX VGA" );ACCESS_FBINFO (fbcon.changevar) =NULL ; -ACCESS_FBINFO (fbcon.node) =-1 ; +ACCESS_FBINFO (fbcon.node.value) =-1 ;ACCESS_FBINFO (fbcon.fbops) = &matroxfb_ops;ACCESS_FBINFO (fbcon.disp) = d;ACCESS_FBINFO (fbcon.switch_con) = &matroxfb_switch;
Quoted 2 lines · Denis Zaitsev
So, below is the little fix. It's self-explanatory. Matrox's fb can't be compiled without it. Petr, please, apply it.
Thanks. I already tried to push updated matroxfb to both Marcello and Linus, but only Alan picked it... matroxfb_crtc2.c needs simillar fix, BTW.
video/matrox/matroxfb_base.c line 1792
Quoted 8 lines
video/matrox/matroxfb_base.c renamed from video/matrox/matroxfb_base.c.orig +1
-1@@ -1789,7 +1789,7 @@strcpy (ACCESS_FBINFO (fbcon.modename),"MATROX VGA" );ACCESS_FBINFO (fbcon.changevar) =NULL ; -ACCESS_FBINFO (fbcon.node) =-1 ; +ACCESS_FBINFO (fbcon.node.value) =-1 ;
No, ACCESS_FBINFO(fbcon.node) = B_FREE;
or = NODEV;
video/matrox/matroxfb_base.c line 1795
Quoted 3 lines
video/matrox/matroxfb_base.c renamed from video/matrox/matroxfb_base.c.orig +0
-0ACCESS_FBINFO (fbcon.fbops) = &matroxfb_ops;ACCESS_FBINFO (fbcon.disp) = d;ACCESS_FBINFO (fbcon.switch_con) = &matroxfb_switch;
Petr Vandrovec [email protected]
PATCH 1/1 matroxfb_base.c - a little fix
In reply to Denis ZaitsevIt was two identical if-else branches in matroxfb_decode_var - one for
var->bits_per_pixel == 4
and the other for
var->bits_per_pixel <= 8. So, I've removed 4's one. It should be ok, if this branch was ok - i.e. was intentionally made the same as the 8bpp's. So, Petr, please, apply this fix, if all ok.
video/matrox/matroxfb_base.c renamed from video/matrox/matroxfb_base.c.orig +0 -10
@@ -494,16 +494,6 @@ static int matroxfb_decode_var(CPMINFO s var->transp.offset =0 ; var->transp.length =0 ; *visual =MX_VISUAL_PSEUDOCOLOR ; - }else if (var->bits_per_pixel ==4 ) { - var->red.offset =0 ; - var->red.length =8 ; - var->green.offset =0 ; - var->green.length =8 ; - var->blue.offset =0 ; - var->blue.length =8 ; - var->transp.offset =0 ; - var->transp.length =0 ; - *visual =MX_VISUAL_PSEUDOCOLOR ; }else if (var->bits_per_pixel <=8 ) { var->red.offset =0 ; var->red.length =8 ;