Commit b8e34b3f authored by Aaro Koskinen's avatar Aaro Koskinen Committed by Greg Kroah-Hartman

staging: xgifb: SetFlag: delete EnableChB

This flag is never set, so checks can be removed and code behind it
deleted.
Signed-off-by: default avatarAaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c4f9c31e
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
#define SetCRT2ToDualEdge 0x8000 #define SetCRT2ToDualEdge 0x8000
#define ReserveTVOption 0x0008 #define ReserveTVOption 0x0008
#define EnableChB 0x2000
#define DisableChA 0x4000 #define DisableChA 0x4000
#define EnableChA 0x8000 #define EnableChA 0x8000
......
...@@ -4553,7 +4553,7 @@ static unsigned char XGI_EnableChISLCD(struct vb_device_info *pVBInfo, ...@@ -4553,7 +4553,7 @@ static unsigned char XGI_EnableChISLCD(struct vb_device_info *pVBInfo,
unsigned short tempbx, tempah; unsigned short tempbx, tempah;
if (enable) if (enable)
tempbx = pVBInfo->SetFlag & (EnableChA | EnableChB); tempbx = pVBInfo->SetFlag & EnableChA;
else else
tempbx = pVBInfo->SetFlag & DisableChA; tempbx = pVBInfo->SetFlag & DisableChA;
...@@ -4564,12 +4564,6 @@ static unsigned char XGI_EnableChISLCD(struct vb_device_info *pVBInfo, ...@@ -4564,12 +4564,6 @@ static unsigned char XGI_EnableChISLCD(struct vb_device_info *pVBInfo,
return 0; return 0;
} }
if (!(tempbx & EnableChB))
return 0;
if (tempah & 0x01) /* Chk LCDB Mode */
return 1;
return 0; return 0;
} }
...@@ -5483,9 +5477,8 @@ static void XGI_EnableBridge(struct xgifb_video_info *xgifb_info, ...@@ -5483,9 +5477,8 @@ static void XGI_EnableBridge(struct xgifb_video_info *xgifb_info,
} }
} }
if ((pVBInfo->SetFlag & EnableChB) || if (pVBInfo->VBInfo & (SetCRT2ToLCD | SetCRT2ToTV |
(pVBInfo->VBInfo & (SetCRT2ToLCD | SetCRT2ToTV | SetCRT2ToRAMDAC)) {
SetCRT2ToRAMDAC))) {
tempah = xgifb_reg_get(pVBInfo->P3c4, 0x32); tempah = xgifb_reg_get(pVBInfo->P3c4, 0x32);
tempah &= 0xDF; tempah &= 0xDF;
if (pVBInfo->VBInfo & SetInSlaveMode) { if (pVBInfo->VBInfo & SetInSlaveMode) {
...@@ -5502,7 +5495,7 @@ static void XGI_EnableBridge(struct xgifb_video_info *xgifb_info, ...@@ -5502,7 +5495,7 @@ static void XGI_EnableBridge(struct xgifb_video_info *xgifb_info,
xgifb_reg_and(pVBInfo->Part1Port, 0x00, 0x7F); xgifb_reg_and(pVBInfo->Part1Port, 0x00, 0x7F);
} }
if ((pVBInfo->SetFlag & (EnableChA | EnableChB)) if ((pVBInfo->SetFlag & EnableChA)
|| (!(pVBInfo->VBInfo & DisableCRT2Display))) { || (!(pVBInfo->VBInfo & DisableCRT2Display))) {
xgifb_reg_and_or(pVBInfo->Part2Port, 0x00, ~0xE0, xgifb_reg_and_or(pVBInfo->Part2Port, 0x00, ~0xE0,
0x20); /* shampoo 0129 */ 0x20); /* shampoo 0129 */
...@@ -5537,9 +5530,6 @@ static void XGI_EnableBridge(struct xgifb_video_info *xgifb_info, ...@@ -5537,9 +5530,6 @@ static void XGI_EnableBridge(struct xgifb_video_info *xgifb_info,
if (pVBInfo->SetFlag & DisableChA) if (pVBInfo->SetFlag & DisableChA)
tempah &= 0x7F; tempah &= 0x7F;
if (pVBInfo->SetFlag & EnableChB)
tempah |= 0x40;
if (pVBInfo->SetFlag & EnableChA) if (pVBInfo->SetFlag & EnableChA)
tempah |= 0x80; tempah |= 0x80;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment