From: pieterg@gmx.com (pieterg)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] pxafb: added transparency field to pxafb_mode_info struct
Date: Fri, 13 Nov 2009 10:28:54 +0100 [thread overview]
Message-ID: <200911131028.54958.pieterg@gmx.com> (raw)
>From fe21c5a79464e0631ea8cf52db521dece06c5a1f Mon Sep 17 00:00:00 2001
From: pieterg <pieterg@gmx.com>
Date: Wed, 4 Nov 2009 10:55:18 +0100
Subject: [PATCH] pxafb: added 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 <p.grimmerink@inepro.com>
---
arch/arm/mach-pxa/include/mach/pxafb.h | 3 ++-
drivers/video/pxafb.c | 1 +
2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/arch/arm/mach-pxa/include/mach/pxafb.h b/arch/arm/mach-pxa/include/mach/pxafb.h
index f73061c..160ec83 100644
--- a/arch/arm/mach-pxa/include/mach/pxafb.h
+++ b/arch/arm/mach-pxa/include/mach/pxafb.h
@@ -76,7 +76,8 @@ struct pxafb_mode_info {
u_char bpp;
u_int cmap_greyscale:1,
depth:8,
- unused:23;
+ transparency:1,
+ unused:22;
/* Parallel Mode Timing */
u_char hsync_len;
diff --git a/drivers/video/pxafb.c b/drivers/video/pxafb.c
index 1820c4a..91b19e3 100644
--- a/drivers/video/pxafb.c
+++ b/drivers/video/pxafb.c
@@ -397,6 +397,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);
--
1.6.5.rc1.44.ga1675
reply other threads:[~2009-11-13 9:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200911131028.54958.pieterg@gmx.com \
--to=pieterg@gmx.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).