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

staging: xgifb: replace andXGIIDXREG() with xgifb_reg_and()

Replace andXGIIDXREG() with xgifb_reg_and().
Signed-off-by: default avatarAaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent e67f4d4d
...@@ -1936,7 +1936,7 @@ static void XGIfb_post_setmode(void) ...@@ -1936,7 +1936,7 @@ static void XGIfb_post_setmode(void)
reg |= 0x80; reg |= 0x80;
xgifb_reg_set(XGICR, 0x17, reg); xgifb_reg_set(XGICR, 0x17, reg);
andXGIIDXREG(XGISR, IND_XGI_RAMDAC_CONTROL, ~0x04); xgifb_reg_and(XGISR, IND_XGI_RAMDAC_CONTROL, ~0x04);
if ((xgi_video_info.disp_state & DISPTYPE_TV) && (xgi_video_info.hasVB if ((xgi_video_info.disp_state & DISPTYPE_TV) && (xgi_video_info.hasVB
== HASVB_301)) { == HASVB_301)) {
...@@ -1967,11 +1967,11 @@ static void XGIfb_post_setmode(void) ...@@ -1967,11 +1967,11 @@ static void XGIfb_post_setmode(void)
if (xgi_video_info.TV_type == TVMODE_NTSC) { if (xgi_video_info.TV_type == TVMODE_NTSC) {
andXGIIDXREG(XGIPART2, 0x3a, 0x1f); xgifb_reg_and(XGIPART2, 0x3a, 0x1f);
if (xgi_video_info.TV_plug == TVPLUG_SVIDEO) { if (xgi_video_info.TV_plug == TVPLUG_SVIDEO) {
andXGIIDXREG(XGIPART2, 0x30, 0xdf); xgifb_reg_and(XGIPART2, 0x30, 0xdf);
} else if (xgi_video_info.TV_plug } else if (xgi_video_info.TV_plug
== TVPLUG_COMPOSITE) { == TVPLUG_COMPOSITE) {
...@@ -2002,11 +2002,11 @@ static void XGIfb_post_setmode(void) ...@@ -2002,11 +2002,11 @@ static void XGIfb_post_setmode(void)
} else if (xgi_video_info.TV_type == TVMODE_PAL) { } else if (xgi_video_info.TV_type == TVMODE_PAL) {
andXGIIDXREG(XGIPART2, 0x3A, 0x1F); xgifb_reg_and(XGIPART2, 0x3A, 0x1F);
if (xgi_video_info.TV_plug == TVPLUG_SVIDEO) { if (xgi_video_info.TV_plug == TVPLUG_SVIDEO) {
andXGIIDXREG(XGIPART2, 0x30, 0xDF); xgifb_reg_and(XGIPART2, 0x30, 0xDF);
} else if (xgi_video_info.TV_plug } else if (xgi_video_info.TV_plug
== TVPLUG_COMPOSITE) { == TVPLUG_COMPOSITE) {
......
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