From 00ebebb0e9d7282166bfd1be0bf5580a27c71b78 Mon Sep 17 00:00:00 2001 From: Dhaval Patel Date: Wed, 1 Jul 2015 17:19:01 -0700 Subject: msm: mdss: remove unused register read request and invalid comment Ctl rev in vfp update method is unused. Remove this nop instruction. DSI timing mode configuration is not specific for 8916/8939 target but common for all targets. Remove such invalid target specific comment. Change-Id: Ie7c75203ca50e6bd2abf952f4d4362314c01987c Signed-off-by: Dhaval Patel --- drivers/video/fbdev/msm/mdss_dsi.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/video/fbdev/msm/mdss_dsi.c b/drivers/video/fbdev/msm/mdss_dsi.c index 04b2241fadf1..d2b7cd26c74a 100644 --- a/drivers/video/fbdev/msm/mdss_dsi.c +++ b/drivers/video/fbdev/msm/mdss_dsi.c @@ -1512,7 +1512,7 @@ int mdss_dsi_cont_splash_on(struct mdss_panel_data *pdata) static void __mdss_dsi_update_video_mode_total(struct mdss_panel_data *pdata, int new_fps) { - u32 hsync_period, vsync_period, ctrl_rev; + u32 hsync_period, vsync_period; u32 new_dsi_v_total, current_dsi_v_total; struct mdss_dsi_ctrl_pdata *ctrl_pdata = NULL; @@ -1548,8 +1548,7 @@ static void __mdss_dsi_update_video_mode_total(struct mdss_panel_data *pdata, MIPI_OUTP((ctrl_pdata->ctrl_base) + 0x2C, (new_dsi_v_total & 0x7ffffff)); } - ctrl_rev = MIPI_INP(ctrl_pdata->ctrl_base); - /* Flush DSI TIMING registers for 8916/8939 */ + if (ctrl_pdata->shared_data->timing_db_mode) MIPI_OUTP((ctrl_pdata->ctrl_base) + 0x1e4, 0x1); ctrl_pdata->panel_data.panel_info.mipi.frame_rate = new_fps; -- cgit v1.2.3