]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: xgifb: replace outXGIREG() with outb()
authorAaro Koskinen <aaro.koskinen@iki.fi>
Mon, 18 Apr 2011 19:13:57 +0000 (22:13 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 26 Apr 2011 00:26:25 +0000 (17:26 -0700)
Replace outXGIREG() with outb().

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/xgifb/XGI_main_26.c

index 721bd25fe542ab8fa945f829aaae0dfe678672ec..d790eb373f4d86347fb8bb840cce978f42546ce9 100644 (file)
@@ -1235,15 +1235,15 @@ static int XGIfb_setcolreg(unsigned regno, unsigned red, unsigned green,
 
        switch (info->var.bits_per_pixel) {
        case 8:
-               outXGIREG(XGIDACA, regno);
-               outXGIREG(XGIDACD, (red >> 10));
-               outXGIREG(XGIDACD, (green >> 10));
-               outXGIREG(XGIDACD, (blue >> 10));
+               outb(regno, XGIDACA);
+               outb((red >> 10), XGIDACD);
+               outb((green >> 10), XGIDACD);
+               outb((blue >> 10), XGIDACD);
                if (xgi_video_info.disp_state & DISPTYPE_DISP2) {
-                       outXGIREG(XGIDAC2A, regno);
-                       outXGIREG(XGIDAC2D, (red >> 8));
-                       outXGIREG(XGIDAC2D, (green >> 8));
-                       outXGIREG(XGIDAC2D, (blue >> 8));
+                       outb(regno, XGIDAC2A);
+                       outb((red >> 8), XGIDAC2D);
+                       outb((green >> 8), XGIDAC2D);
+                       outb((blue >> 8), XGIDAC2D);
                }
                break;
        case 16: