Skip to content

Commit

Permalink
[PATCH] ARM: AMBA CLCD: X resolutions must be multiples of 16
Browse files Browse the repository at this point in the history
We ignore the bottom 4 bits of the X resolution, so we should
round X resolutions up to the nearest multiple of 16.

Signed-off-by: Russell King <rmk@arm.linux.org.uk>
  • Loading branch information
Russell King committed Apr 28, 2005
1 parent 82235e9 commit 0f7ad45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/asm-arm/hardware/amba_clcd.h
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ static inline void clcdfb_decode(struct clcd_fb *fb, struct clcd_regs *regs)

static inline int clcdfb_check(struct clcd_fb *fb, struct fb_var_screeninfo *var)
{
var->xres_virtual = var->xres = (var->xres + 7) & ~7;
var->xres_virtual = var->xres = (var->xres + 15) & ~15;
var->yres_virtual = var->yres = (var->yres + 1) & ~1;

#define CHECK(e,l,h) (var->e < l || var->e > h)
Expand Down

0 comments on commit 0f7ad45

Please sign in to comment.