Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1241159
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Lars Svensson <lars1.svensson@sonymobile.com> |
| Newsgroups | linux.kernel |
| Subject | [PATCH v2 1/2] fb.h: Provide alternate screen_base pointer |
| Date | Wed, 07 Oct 2015 07:50:02 +0200 |
| Message-ID | <qgPLY-464-9@gated-at.bofh.it> (permalink) |
| X-Original-To | <thomas.petazzoni@free-electrons.com>, <noralf@tronnes.org>, <plagnioj@jcrosoft.com>, <tomi.valkeinen@ti.com> |
| X-Mailer | git-send-email 1.7.9.5 |
| MIME-Version | 1.0 |
| Content-Type | text/plain |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 34 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | <linux-fbdev@vger.kernel.org>, <gregkh@linuxfoundation.org>, <devel@driverdev.osuosl.org>, <linux-kernel@vger.kernel.org>, <dan.carpenter@oracle.com>, Lars Svensson <lars1.svensson@sonymobile.com> |
| X-Original-Date | Wed, 7 Oct 2015 07:45:31 +0200 |
| X-Original-Message-ID | <1444196732-27841-1-git-send-email-lars1.svensson@sonymobile.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1241159 |
Show key headers only | View raw
Some drivers use member screen_base of struct fb_info to store non-
__iomem pointers, creating the need for ugly __force typecasts to
avoid sparse warnings. This adds an alternate pointer without the
__iomem qualifyer for this use.
Signed-off-by: Lars Svensson <lars1.svensson@sonymobile.com>
---
include/linux/fb.h | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/include/linux/fb.h b/include/linux/fb.h
index bc9afa7..41a3b11 100644
--- a/include/linux/fb.h
+++ b/include/linux/fb.h
@@ -483,7 +483,10 @@ struct fb_info {
#ifdef CONFIG_FB_TILEBLITTING
struct fb_tile_ops *tileops; /* Tile Blitting */
#endif
- char __iomem *screen_base; /* Virtual address */
+ union {
+ char __iomem *screen_base; /* Virtual address */
+ char *screen_buffer;
+ };
unsigned long screen_size; /* Amount of ioremapped VRAM or 0 */
void *pseudo_palette; /* Fake palette of 16 colors */
#define FBINFO_STATE_RUNNING 0
--
2.4.2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH v2 1/2] fb.h: Provide alternate screen_base pointer Lars Svensson <lars1.svensson@sonymobile.com> - 2015-10-07 07:50 +0200
csiph-web