From: Jonathan McDowell Date: Fri, 4 Aug 2006 10:44:26 +0000 (+0300) Subject: [PATCH] ARM: OMAP: omapfb: Fix 444 mode after recent LCD changes X-Git-Tag: v2.6.17-omap2~7 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=e10a75b49e7a57ae17c28b705153c70eba15a8ef;p=linux-2.6-omap-h63xx.git [PATCH] ARM: OMAP: omapfb: Fix 444 mode after recent LCD changes The recent changes to the LCD driver have broken the 444 mode (where a 12 bit panel is driven from 16 bits in memory). This one liner fixes it for me. Signed-off-by: Jonathan McDowell Signed-off-by: Tony Lindgren --- diff --git a/drivers/video/omap/omapfb_main.c b/drivers/video/omap/omapfb_main.c index b4236765bdb..29440b0444e 100644 --- a/drivers/video/omap/omapfb_main.c +++ b/drivers/video/omap/omapfb_main.c @@ -420,6 +420,7 @@ static int set_color_mode(struct omapfb_plane_struct *plane, plane->color_mode = OMAPFB_COLOR_CLUT_8BPP; return 0; case 12: + var->bits_per_pixel = 16; plane->color_mode = OMAPFB_COLOR_RGB444; return 0; case 16: