From f1be3cae0320a472db7944c43485eed378b74f58 Mon Sep 17 00:00:00 2001 From: Peng Fan Date: Fri, 31 Jul 2015 10:44:11 +0800 Subject: MLK-11263-2 video: epdc: move setup_waveform_file to board common Since setup_waveform_file in different boards code have same implementation, move setup_waveform_file to board common code. Also rename it to board_setup_waveform_file This patch also fix a bug when using flush_cache. We should pass 'waveform_buf' to flush_cache, but not a string named 'addr'. Signed-off-by: Peng Fan --- drivers/video/mxc_epdc_fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/video') diff --git a/drivers/video/mxc_epdc_fb.c b/drivers/video/mxc_epdc_fb.c index f50c509..6bbb905 100644 --- a/drivers/video/mxc_epdc_fb.c +++ b/drivers/video/mxc_epdc_fb.c @@ -439,7 +439,7 @@ void lcd_ctrl_init(void *lcdbase) REG_WR(EPDC_BASE, EPDC_WB_ADDR_TCE, panel_info.epdc_data.working_buf_addr); /* Get waveform data address and offset */ - if (setup_waveform_file(panel_info.epdc_data.waveform_buf_addr)) { + if (board_setup_waveform_file(panel_info.epdc_data.waveform_buf_addr)) { printf("Can't load waveform data!\n"); return; } -- cgit v1.1