diff options
Diffstat (limited to 'drivers/video')
| -rw-r--r-- | drivers/video/fbdev/matrox/matroxfb_misc.c | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/drivers/video/fbdev/matrox/matroxfb_misc.c b/drivers/video/fbdev/matrox/matroxfb_misc.c index c7aaca12805e..8f159a2ad8d0 100644 --- a/drivers/video/fbdev/matrox/matroxfb_misc.c +++ b/drivers/video/fbdev/matrox/matroxfb_misc.c @@ -673,7 +673,10 @@ static int parse_pins5(struct matrox_fb_info *minfo,  	if (bd->pins[115] & 4) {  		minfo->values.reg.mctlwtst_core = minfo->values.reg.mctlwtst;  	} else { -		u_int32_t wtst_xlat[] = { 0, 1, 5, 6, 7, 5, 2, 3 }; +		static const u8 wtst_xlat[] = { +			0, 1, 5, 6, 7, 5, 2, 3 +		}; +  		minfo->values.reg.mctlwtst_core = (minfo->values.reg.mctlwtst & ~7) |  						  wtst_xlat[minfo->values.reg.mctlwtst & 7];  	} |