Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 547
b: refs/heads/master
c: 82235e9
h: refs/heads/master
i:
  545: e1b567a
  543: 19d2887
v: v3
  • Loading branch information
Russell King committed Apr 28, 2005
1 parent 8949506 commit 1c77fc3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 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: c4d12b98ead8bb2437f656c17e7ef065fa160e13
refs/heads/master: 82235e9170f19fa327361ee82a76618e60f2db47
8 changes: 7 additions & 1 deletion trunk/drivers/video/amba-clcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ clcdfb_set_bitfields(struct clcd_fb *fb, struct fb_var_screeninfo *var)
var->blue.offset = 10;
}
break;
case 24:
case 32:
if (fb->panel->cntl & CNTL_LCDTFT) {
var->red.length = 8;
var->green.length = 8;
Expand Down Expand Up @@ -178,6 +178,12 @@ static int clcdfb_check_var(struct fb_var_screeninfo *var, struct fb_info *info)

if (fb->board->check)
ret = fb->board->check(fb, var);

if (ret == 0 &&
var->xres_virtual * var->bits_per_pixel / 8 *
var->yres_virtual > fb->fb.fix.smem_len)
ret = -EINVAL;

if (ret == 0)
ret = clcdfb_set_bitfields(fb, var);

Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-arm/hardware/amba_clcd.h
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ static inline void clcdfb_decode(struct clcd_fb *fb, struct clcd_regs *regs)
case 16:
val |= CNTL_LCDBPP16;
break;
case 24:
case 32:
val |= CNTL_LCDBPP24;
break;
}
Expand Down

0 comments on commit 1c77fc3

Please sign in to comment.