summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLars Svensson <lars1.svensson@sonymobile.com>2015-10-07 09:20:12 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-13 19:51:30 +0200
commit17a7b0b4d9749f80d365d7baff5dec2f54b0e992 (patch)
tree4e9d55799b3ab06d1acc3ea339ffe964f3a87bea /include
parentstaging: fbtft: add support for C-Berry28 display (diff)
downloadlinux-17a7b0b4d9749f80d365d7baff5dec2f54b0e992.tar.xz
linux-17a7b0b4d9749f80d365d7baff5dec2f54b0e992.zip
fb.h: Provide alternate screen_base pointer
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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/fb.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/fb.h b/include/linux/fb.h
index bc9afa74ee11..41a3b11f7796 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