Skip to contentSkip to conversation

sisfb: fix 1280x720 resolution support

PATCH In review Dan Carpenter 2 participants 2 messages Mar 7, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sisfb: fix 1280x720 resolution support

It uses the wrong mode index because there is no break statement.

drivers/video/fbdev/sis/init.c +1 -0
index 4f26bc28e60b..bd40f5ecd901 100644
@@ -651,6 +651,7 @@ SiS_GetModeID_LCD(int VGAEngine, unsigned int VBFlags, int HDisplay, int VDispla
 	     switch(VDisplay) {
 	     case 720:
 		ModeIndex = ModeIndex_1280x720[Depth];
+		break;
 	     case 768:
 		if(VGAEngine = SIS_300_VGA) {
 		   ModeIndex = ModeIndex_300_1280x768[Depth];
#1 lore raw
Quoted 10 lines · Dan Carpenter

It uses the wrong mode index because there is no break statement.

drivers/video/fbdev/sis/init.c +0 -0
index 4f26bc28e60b..bd40f5ecd901 100644

drivers/video/fbdev/sis/init.c SiS_GetModeID_LCD(int VGAEngine, unsigned int VBFlags, int HDisplay, int VDispla · line 657

Quoted 7 lines
drivers/video/fbdev/sis/init.c +1 -0
@@ -651,6 +651,7 @@ SiS_GetModeID_LCD(int VGAEngine, unsigned int VBFlags, int HDisplay, int VDispla
 	     switch(VDisplay) {
 	     case 720:
 		ModeIndex = ModeIndex_1280x720[Depth];
+		break;
 	     case 768:
 		if(VGAEngine == SIS_300_VGA) {
 		   ModeIndex = ModeIndex_300_1280x768[Depth];

Thanks, queued for 3.15.

Tomi