From 17d6ce11195fceda62af00beefde37e37a01337c Mon Sep 17 00:00:00 2001 From: Aaro Koskinen Date: Mon, 20 Dec 2010 23:50:22 +0200 Subject: sisfb: eliminate compiler warnings Convert some bit masks to 8-bit values to avoid the following compiler warnings: drivers/video/sis/sis_main.c:3858: warning: large integer implicitly truncated to unsigned type drivers/video/sis/init301.c:5855: warning: large integer implicitly truncated to unsigned type drivers/video/sis/init301.c:5869: warning: large integer implicitly truncated to unsigned type Signed-off-by: Aaro Koskinen Cc: Thomas Winischhofer Signed-off-by: Paul Mundt --- drivers/video/sis/sis_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/video/sis/sis_main.c') diff --git a/drivers/video/sis/sis_main.c b/drivers/video/sis/sis_main.c index 793216b5d1a7..2fb8c5a660fb 100644 --- a/drivers/video/sis/sis_main.c +++ b/drivers/video/sis/sis_main.c @@ -3855,7 +3855,7 @@ sisfb_post_setmode(struct sis_video_info *ivideo) reg1 = 0x00; } SiS_SetRegANDOR(SISCR, ivideo->SiS_Pr.SiS_MyCR63, ~0x40, reg); - SiS_SetRegANDOR(SISSR, 0x1f, ~0xc0, reg1); + SiS_SetRegANDOR(SISSR, 0x1f, 0x3f, reg1); } #endif -- cgit v1.2.3