Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 337804
b: refs/heads/master
c: e8e6c75
h: refs/heads/master
v: v3
  • Loading branch information
Aaro Koskinen authored and Greg Kroah-Hartman committed Nov 13, 2012
1 parent c3a10ab commit 627c074
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 224114c788c7445aa90245ada7baa46296a06701
refs/heads/master: e8e6c754e50fd05f8e44cd88fddb948d9c1e6740
23 changes: 11 additions & 12 deletions trunk/drivers/staging/xgifb/vb_setmode.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ void InitTo330Pointer(unsigned char ChipType, struct vb_device_info *pVBInfo)
{
pVBInfo->MCLKData = XGI340New_MCLKData;
pVBInfo->StResInfo = XGI330_StResInfo;
pVBInfo->ModeResInfo = XGI330_ModeResInfo;

pVBInfo->LCDResInfo = 0;
pVBInfo->LCDTypeInfo = 0;
Expand Down Expand Up @@ -742,8 +741,8 @@ static void XGI_SetCRT1DE(struct xgi_hw_device_info *HwDeviceExtension,
resindex = XGI330_EModeIDTable[ModeIdIndex].Ext_RESINFO;

modeflag = XGI330_EModeIDTable[ModeIdIndex].Ext_ModeFlag;
tempax = pVBInfo->ModeResInfo[resindex].HTotal;
tempbx = pVBInfo->ModeResInfo[resindex].VTotal;
tempax = XGI330_ModeResInfo[resindex].HTotal;
tempbx = XGI330_ModeResInfo[resindex].VTotal;

if (modeflag & HalfDCLK)
tempax = tempax >> 1;
Expand Down Expand Up @@ -1101,7 +1100,7 @@ static void XGI_SetCRT1ModeRegs(struct xgi_hw_device_info *HwDeviceExtension,

xgifb_reg_and_or(pVBInfo->P3c4, 0x06, ~0x3F, data2);
resindex = XGI330_EModeIDTable[ModeIdIndex].Ext_RESINFO;
xres = pVBInfo->ModeResInfo[resindex].HTotal; /* xres->ax */
xres = XGI330_ModeResInfo[resindex].HTotal; /* xres->ax */

data = 0x0000;
if (infoflag & InterlaceMode) {
Expand Down Expand Up @@ -1267,8 +1266,8 @@ static void XGI_GetLVDSResInfo(unsigned short ModeNo,
/* si+Ext_ResInfo */
resindex = XGI330_EModeIDTable[ModeIdIndex].Ext_RESINFO;

xres = pVBInfo->ModeResInfo[resindex].HTotal;
yres = pVBInfo->ModeResInfo[resindex].VTotal;
xres = XGI330_ModeResInfo[resindex].HTotal;
yres = XGI330_ModeResInfo[resindex].VTotal;

if (modeflag & HalfDCLK)
xres = xres << 1;
Expand Down Expand Up @@ -2631,8 +2630,8 @@ static void XGI_GetCRT2ResInfo(unsigned short ModeNo,
unsigned short xres, yres, modeflag, resindex;

resindex = XGI330_EModeIDTable[ModeIdIndex].Ext_RESINFO;
xres = pVBInfo->ModeResInfo[resindex].HTotal; /* xres->ax */
yres = pVBInfo->ModeResInfo[resindex].VTotal; /* yres->bx */
xres = XGI330_ModeResInfo[resindex].HTotal; /* xres->ax */
yres = XGI330_ModeResInfo[resindex].VTotal; /* yres->bx */
/* si+St_ModeFlag */
modeflag = XGI330_EModeIDTable[ModeIdIndex].Ext_ModeFlag;

Expand Down Expand Up @@ -4502,8 +4501,8 @@ static unsigned char XGI_XG21CheckLVDSMode(struct xgifb_video_info *xgifb_info,
unsigned short xres, yres, colordepth, modeflag, resindex;

resindex = XGI330_EModeIDTable[ModeIdIndex].Ext_RESINFO;
xres = pVBInfo->ModeResInfo[resindex].HTotal; /* xres->ax */
yres = pVBInfo->ModeResInfo[resindex].VTotal; /* yres->bx */
xres = XGI330_ModeResInfo[resindex].HTotal; /* xres->ax */
yres = XGI330_ModeResInfo[resindex].VTotal; /* yres->bx */
/* si+St_ModeFlag */
modeflag = XGI330_EModeIDTable[ModeIdIndex].Ext_ModeFlag;

Expand Down Expand Up @@ -4564,8 +4563,8 @@ static void xgifb_set_lvds(struct xgifb_video_info *xgifb_info,
XGI_SetXG21FPBits(pVBInfo);

resindex = XGI330_EModeIDTable[ModeIdIndex].Ext_RESINFO;
xres = pVBInfo->ModeResInfo[resindex].HTotal; /* xres->ax */
yres = pVBInfo->ModeResInfo[resindex].VTotal; /* yres->bx */
xres = XGI330_ModeResInfo[resindex].HTotal; /* xres->ax */
yres = XGI330_ModeResInfo[resindex].VTotal; /* yres->bx */
/* si+St_ModeFlag */
modeflag = XGI330_EModeIDTable[ModeIdIndex].Ext_ModeFlag;

Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/staging/xgifb/vb_struct.h
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ struct vb_device_info {
struct XGI_TimingVStruct TimingV;

struct SiS_StResInfo_S *StResInfo;
struct SiS_ModeResInfo_S *ModeResInfo;

int ram_type;
int ram_channel;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/xgifb/vb_table.h
Original file line number Diff line number Diff line change
Expand Up @@ -2131,7 +2131,7 @@ static struct SiS_StResInfo_S XGI330_StResInfo[] = {
{640, 480}
};

static struct SiS_ModeResInfo_S XGI330_ModeResInfo[] = {
static const struct SiS_ModeResInfo_S XGI330_ModeResInfo[] = {
{ 320, 200, 8, 8},
{ 320, 240, 8, 8},
{ 320, 400, 8, 8},
Expand Down

0 comments on commit 627c074

Please sign in to comment.