From: Russell King Date: Sat, 30 Apr 2005 22:28:47 +0000 (+0100) Subject: [PATCH] ARM: IntegratorCP: 16bpp is RGB565 not RGB555 X-Git-Tag: v2.6.12-rc4~136^2~190^2~1 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed562ab12733ab75437b3390427d41fce9da83c3;p=linux-2.6 [PATCH] ARM: IntegratorCP: 16bpp is RGB565 not RGB555 Signed-off-by: Russell King --- diff --git a/drivers/video/amba-clcd.c b/drivers/video/amba-clcd.c index 2896a380d4..321dbe91dc 100644 --- a/drivers/video/amba-clcd.c +++ b/drivers/video/amba-clcd.c @@ -134,16 +134,16 @@ clcdfb_set_bitfields(struct clcd_fb *fb, struct fb_var_screeninfo *var) break; case 16: var->red.length = 5; - var->green.length = 5; + var->green.length = 6; var->blue.length = 5; if (fb->panel->cntl & CNTL_BGR) { - var->red.offset = 10; + var->red.offset = 11; var->green.offset = 5; var->blue.offset = 0; } else { var->red.offset = 0; var->green.offset = 5; - var->blue.offset = 10; + var->blue.offset = 11; } break; case 32: