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

staging: xgifb: replace outXGIREG() with outb()

Replace outXGIREG() with outb().
Signed-off-by: default avatarAaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent e0ce58d7
...@@ -1235,15 +1235,15 @@ static int XGIfb_setcolreg(unsigned regno, unsigned red, unsigned green, ...@@ -1235,15 +1235,15 @@ static int XGIfb_setcolreg(unsigned regno, unsigned red, unsigned green,
switch (info->var.bits_per_pixel) { switch (info->var.bits_per_pixel) {
case 8: case 8:
outXGIREG(XGIDACA, regno); outb(regno, XGIDACA);
outXGIREG(XGIDACD, (red >> 10)); outb((red >> 10), XGIDACD);
outXGIREG(XGIDACD, (green >> 10)); outb((green >> 10), XGIDACD);
outXGIREG(XGIDACD, (blue >> 10)); outb((blue >> 10), XGIDACD);
if (xgi_video_info.disp_state & DISPTYPE_DISP2) { if (xgi_video_info.disp_state & DISPTYPE_DISP2) {
outXGIREG(XGIDAC2A, regno); outb(regno, XGIDAC2A);
outXGIREG(XGIDAC2D, (red >> 8)); outb((red >> 8), XGIDAC2D);
outXGIREG(XGIDAC2D, (green >> 8)); outb((green >> 8), XGIDAC2D);
outXGIREG(XGIDAC2D, (blue >> 8)); outb((blue >> 8), XGIDAC2D);
} }
break; break;
case 16: case 16:
......
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