diff options
| author | Padmanabhan Komanduru <pkomandu@codeaurora.org> | 2016-10-13 19:04:17 +0530 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-10-20 22:27:12 -0700 |
| commit | 4adb0dcff2aef4e375c26ed2ba9b4e654aead089 (patch) | |
| tree | f71b7ee8e0e048f7a26248c60fbb3613babbc865 | |
| parent | 8456550a58cf7d3d4123fc068fc0109d4f72a848 (diff) | |
msm: mdss: fix 32-bit compilation issues for MDSS DP driver
Add required changes to fix the 32-bit compilation issues for
MDSS Display Port driver.
Change-Id: I34193ef71bed3fe23d9699964ce3d18529b26dc6
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
| -rw-r--r-- | drivers/video/fbdev/msm/mdss_dp_aux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/fbdev/msm/mdss_dp_aux.c b/drivers/video/fbdev/msm/mdss_dp_aux.c index 3c525b0dac4f..908a389899c1 100644 --- a/drivers/video/fbdev/msm/mdss_dp_aux.c +++ b/drivers/video/fbdev/msm/mdss_dp_aux.c @@ -525,8 +525,8 @@ char mdss_dp_gen_link_clk(struct mdss_panel_info *pinfo, char lane_cnt) * Any changes in the section of code should * consider this limitation. */ - min_link_rate = pinfo->clk_rate - / (lane_cnt * encoding_factx10); + min_link_rate = (u32)div_u64(pinfo->clk_rate, + (lane_cnt * encoding_factx10)); min_link_rate /= ln_to_link_ratio; min_link_rate = (min_link_rate * pinfo->bpp); min_link_rate = (u32)div_u64(min_link_rate * 10, |
