Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 354355
b: refs/heads/master
c: bae3170
h: refs/heads/master
i:
  354353: 08ff26c
  354351: e749625
v: v3
  • Loading branch information
Peter Huewe authored and Greg Kroah-Hartman committed Feb 4, 2013
1 parent 62e3736 commit d1a600e
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 76a5899b0ceeaeda7b457b7f55cd258bc0c49c34
refs/heads/master: bae31702cdc0db3d45d05aa6e073641c85918c50
16 changes: 2 additions & 14 deletions trunk/drivers/staging/xgifb/XGI_main_26.c
Original file line number Diff line number Diff line change
Expand Up @@ -1131,22 +1131,10 @@ static int XGIfb_release(struct fb_info *info, int user)
return 0;
}

/* similar to sisfb_get_cmap_len */
static int XGIfb_get_cmap_len(const struct fb_var_screeninfo *var)
{
int rc = 16;

switch (var->bits_per_pixel) {
case 8:
rc = 256;
break;
case 16:
rc = 16;
break;
case 32:
rc = 16;
break;
}
return rc;
return (var->bits_per_pixel == 8) ? 256 : 16;
}

static int XGIfb_setcolreg(unsigned regno, unsigned red, unsigned green,
Expand Down

0 comments on commit d1a600e

Please sign in to comment.