From 049ad833b1e52f6edeb675c744547167bf76ab2c Mon Sep 17 00:00:00 2001
From: Pieter Grimmerink
Date: Fri, 13 Nov 2009 10:28:54 +0100
Subject: pxafb: add transparency field to pxafb_mode_info struct
This allows to select either RGB565 (transparency 0) or RGBT555
(transparency 1) from the mode info
Signed-off-by: Pieter Grimmerink
Signed-off-by: Eric Miao
---
drivers/video/pxafb.c | 1 +
1 file changed, 1 insertion(+)
(limited to 'drivers/video')
diff --git a/drivers/video/pxafb.c b/drivers/video/pxafb.c
index 33a6aacfcbe3..f58a3aae6ea6 100644
--- a/drivers/video/pxafb.c
+++ b/drivers/video/pxafb.c
@@ -398,6 +398,7 @@ static void pxafb_setmode(struct fb_var_screeninfo *var,
var->lower_margin = mode->lower_margin;
var->sync = mode->sync;
var->grayscale = mode->cmap_greyscale;
+ var->transp.length = mode->transparency;
/* set the initial RGBA bitfields */
pxafb_set_pixfmt(var, mode->depth);
--
cgit v1.2.3