aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/sh_mobile_lcdcfb.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2011-11-21 18:56:58 -0500
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2012-03-12 17:41:12 -0400
commitb5ef967df13d4d243a2954c32bdd9181a1ee7382 (patch)
tree2c8259f90d5bd79aeb20f210aabd9f5459e352ff /drivers/video/sh_mobile_lcdcfb.h
parentd81d5fa8adfb0ba19f44bb6c4c04a2a23effac3f (diff)
fbdev: sh_mobile_lcdc: Don't store copy of platform data
Instead of copying the whole platform data structure to struct sh_mobile_lcdc_chan, store a const pointer to the channel platform data. MERAM configuration information needs to be changed at runtime, so copy it to struct sh_mobile_lcdc_chan. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'drivers/video/sh_mobile_lcdcfb.h')
-rw-r--r--drivers/video/sh_mobile_lcdcfb.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/video/sh_mobile_lcdcfb.h b/drivers/video/sh_mobile_lcdcfb.h
index bf1707cd3657..da1c26e78a57 100644
--- a/drivers/video/sh_mobile_lcdcfb.h
+++ b/drivers/video/sh_mobile_lcdcfb.h
@@ -54,7 +54,7 @@ struct sh_mobile_lcdc_entity {
54struct sh_mobile_lcdc_chan { 54struct sh_mobile_lcdc_chan {
55 struct sh_mobile_lcdc_priv *lcdc; 55 struct sh_mobile_lcdc_priv *lcdc;
56 struct sh_mobile_lcdc_entity *tx_dev; 56 struct sh_mobile_lcdc_entity *tx_dev;
57 struct sh_mobile_lcdc_chan_cfg cfg; 57 const struct sh_mobile_lcdc_chan_cfg *cfg;
58 58
59 unsigned long *reg_offs; 59 unsigned long *reg_offs;
60 unsigned long ldmt1r_value; 60 unsigned long ldmt1r_value;
@@ -66,6 +66,7 @@ struct sh_mobile_lcdc_chan {
66 66
67 void *fb_mem; 67 void *fb_mem;
68 unsigned long fb_size; 68 unsigned long fb_size;
69
69 dma_addr_t dma_handle; 70 dma_addr_t dma_handle;
70 unsigned long pan_offset; 71 unsigned long pan_offset;
71 72