From b5ef967df13d4d243a2954c32bdd9181a1ee7382 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Tue, 22 Nov 2011 00:56:58 +0100 Subject: 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 --- drivers/video/sh_mobile_lcdcfb.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'drivers/video/sh_mobile_lcdcfb.h') 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 { struct sh_mobile_lcdc_chan { struct sh_mobile_lcdc_priv *lcdc; struct sh_mobile_lcdc_entity *tx_dev; - struct sh_mobile_lcdc_chan_cfg cfg; + const struct sh_mobile_lcdc_chan_cfg *cfg; unsigned long *reg_offs; unsigned long ldmt1r_value; @@ -66,6 +66,7 @@ struct sh_mobile_lcdc_chan { void *fb_mem; unsigned long fb_size; + dma_addr_t dma_handle; unsigned long pan_offset; -- cgit