staging: xgifb: avoid copy-pasting LCD data
Share the common data tables instead of having the same data in multiple tables. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
4d8f5ca7d2
commit
4c047ac461
|
@ -525,18 +525,7 @@ static struct SiS_LCDData XGI_StLCD1600x1200Data[] = {
|
|||
{1, 1, 2160, 1250, 2160, 1250} /* 09 (1600x1200) */
|
||||
};
|
||||
|
||||
static struct SiS_LCDData XGI_CetLCD1400x1050Data[] = {
|
||||
{1, 1, 1688, 1066, 1688, 1066}, /* 00 (320x200,320x400,
|
||||
640x200,640x400) */
|
||||
{1, 1, 1688, 1066, 1688, 1066}, /* 01 (320x350,640x350) */
|
||||
{1, 1, 1688, 1066, 1688, 1066}, /* 02 (360x400,720x400) */
|
||||
{1, 1, 1688, 1066, 1688, 1066}, /* 03 (720x350) */
|
||||
{1, 1, 1688, 1066, 1688, 1066}, /* 04 (640x480x60Hz) */
|
||||
{1, 1, 1688, 1066, 1688, 1066}, /* 05 (800x600x60Hz) */
|
||||
{1, 1, 1688, 1066, 1688, 1066}, /* 06 (1024x768x60Hz) */
|
||||
{1, 1, 1688, 1066, 1688, 1066}, /* 07 (1280x1024x60Hz) */
|
||||
{1, 1, 1688, 1066, 1688, 1066} /* 08 (1400x1050x60Hz) */
|
||||
};
|
||||
#define XGI_CetLCD1400x1050Data XGI_CetLCD1280x1024Data
|
||||
|
||||
static struct SiS_LCDData XGI_NoScalingData[] = {
|
||||
{1, 1, 800, 449, 800, 449},
|
||||
|
@ -583,17 +572,7 @@ static struct SiS_LCDData xgifb_lcd_1280x1024x75[] = {
|
|||
{1, 1, 1688, 1066, 1688, 1066} /* ; 07 (1280x1024x75Hz) */
|
||||
};
|
||||
|
||||
static struct SiS_LCDData XGI_CetLCD1280x1024x75Data[] = {
|
||||
{1, 1, 1688, 1066, 1688, 1066}, /* ; 00 (320x200,320x400,
|
||||
640x200,640x400) */
|
||||
{1, 1, 1688, 1066, 1688, 1066}, /* ; 01 (320x350,640x350) */
|
||||
{1, 1, 1688, 1066, 1688, 1066}, /* ; 02 (360x400,720x400) */
|
||||
{1, 1, 1688, 1066, 1688, 1066}, /* ; 03 (720x350) */
|
||||
{1, 1, 1688, 1066, 1688, 1066}, /* ; 04 (640x480x75Hz) */
|
||||
{1, 1, 1688, 1066, 1688, 1066}, /* ; 05 (800x600x75Hz) */
|
||||
{1, 1, 1688, 1066, 1688, 1066}, /* ; 06 (1024x768x75Hz) */
|
||||
{1, 1, 1688, 1066, 1688, 1066} /* ; 07 (1280x1024x75Hz) */
|
||||
};
|
||||
#define XGI_CetLCD1280x1024x75Data XGI_CetLCD1280x1024Data
|
||||
|
||||
static struct SiS_LCDData XGI_NoScalingDatax75[] = {
|
||||
{1, 1, 800, 449, 800, 449}, /* ; 00 (320x200, 320x400,
|
||||
|
@ -1236,17 +1215,7 @@ static struct SiS_LVDSData XGI_LVDS1280x1024Data_1[] = {
|
|||
{1688, 1066, 1688, 1066}
|
||||
};
|
||||
|
||||
static struct SiS_LVDSData XGI_LVDS1280x1024Data_2[] = {
|
||||
{1344, 806, 1344, 806},
|
||||
{1344, 806, 1344, 806},
|
||||
{1344, 806, 1344, 806},
|
||||
{1344, 806, 1344, 806},
|
||||
{1344, 806, 1344, 806},
|
||||
{1344, 806, 1344, 806},
|
||||
{1344, 806, 1344, 806},
|
||||
{800, 449, 1280, 801},
|
||||
{800, 525, 1280, 813}
|
||||
};
|
||||
#define XGI_LVDS1280x1024Data_2 XGI_LVDS1024x768Data_2
|
||||
|
||||
static struct SiS_LVDSData XGI_LVDS1400x1050Data_1[] = {
|
||||
{928, 416, 1688, 1066},
|
||||
|
|
Loading…
Reference in New Issue