summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev/msm
diff options
context:
space:
mode:
authorAshish Garg <ashigarg@codeaurora.org>2017-04-14 17:36:30 +0530
committerAshish Garg <ashigarg@codeaurora.org>2017-04-20 17:41:23 +0530
commit85b6d2c63898d8c98de3fdaa1fada885e7521e36 (patch)
tree611063f537be46a7eaa173f14dc3bc173b8e7312 /drivers/video/fbdev/msm
parent1342831f8a82969fedf9d83d1799b4e24e95eaaa (diff)
msm: mdss: fix a warning for unused value
Value computed is not being used in the statement which is causing a compilation error on some build flavors. Fix the issue by not computing the value as it is not needed. Change-Id: Ia628388deb3057da45989d6376503048b08e8167 Signed-off-by: Ashish Garg <ashigarg@codeaurora.org>
Diffstat (limited to 'drivers/video/fbdev/msm')
-rw-r--r--drivers/video/fbdev/msm/msm_mdss_io_8974.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/video/fbdev/msm/msm_mdss_io_8974.c b/drivers/video/fbdev/msm/msm_mdss_io_8974.c
index 9c156af6b63c..87fe6d739acf 100644
--- a/drivers/video/fbdev/msm/msm_mdss_io_8974.c
+++ b/drivers/video/fbdev/msm/msm_mdss_io_8974.c
@@ -1229,10 +1229,11 @@ static void mdss_dsi_8996_phy_config(struct mdss_dsi_ctrl_pdata *ctrl)
off = DSIPHY_LANE_CFG_BASE;
ln_off = cnt * MDSS_DSI_NUM_DATA_LANES;
ip = &pd->lanecfg[ln_off];
- for (j = 0; j < cnt; j++, *ip++) {
+ for (j = 0; j < cnt; j++) {
MIPI_OUTP(base + off, *ip);
if (panel_info->split_link_enabled)
MIPI_OUTP(base + CLKLANE_SIZE_8996 + off, *ip);
+ ip++;
off += DSIPHY_LANE_CFG_OFFSET;
}
@@ -1245,10 +1246,11 @@ static void mdss_dsi_8996_phy_config(struct mdss_dsi_ctrl_pdata *ctrl)
off = DSIPHY_LANE_TIMING_CTRL_BASE;
ln_off = cnt * MDSS_DSI_NUM_DATA_LANES;
ip = &pd->timing_8996[ln_off];
- for (j = 0; j < cnt; j++, *ip++) {
+ for (j = 0; j < cnt; j++) {
MIPI_OUTP(base + off, *ip);
if (panel_info->split_link_enabled)
MIPI_OUTP(base + CLKLANE_SIZE_8996 + off, *ip);
+ ip++;
off += DSIPHY_LANE_TIMING_CTRL_OFFSET;
}
@@ -1261,10 +1263,11 @@ static void mdss_dsi_8996_phy_config(struct mdss_dsi_ctrl_pdata *ctrl)
off = DSIPHY_LANE_STRENGTH_CTRL_BASE;
ln_off = cnt * MDSS_DSI_NUM_DATA_LANES;
ip = &pd->strength[ln_off];
- for (j = 0; j < cnt; j++, *ip++) {
+ for (j = 0; j < cnt; j++) {
MIPI_OUTP(base + off, *ip);
if (panel_info->split_link_enabled)
MIPI_OUTP(base + CLKLANE_SIZE_8996 + off, *ip);
+ ip++;
off += DSIPHY_LANE_STRENGTH_CTRL_OFFSET;
}