diff options
| author | Linux Build Service Account <lnxbuild@localhost> | 2016-11-08 11:18:37 -0800 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-11-08 11:18:37 -0800 |
| commit | f4317920e6fad5d3c99fa3c7c4da4e85ef0d15f8 (patch) | |
| tree | 596496455209902c9ee23e80cad4d4ce0d03dc69 /drivers/video | |
| parent | 0286d48411e4f78f437424f72e685fd1fbeeae74 (diff) | |
| parent | 4adb0dcff2aef4e375c26ed2ba9b4e654aead089 (diff) | |
Merge "msm: mdss: fix 32-bit compilation issues for MDSS DP driver"
Diffstat (limited to 'drivers/video')
| -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 9014e3a02d21..f9dba99a653d 100644 --- a/drivers/video/fbdev/msm/mdss_dp_aux.c +++ b/drivers/video/fbdev/msm/mdss_dp_aux.c @@ -527,8 +527,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, |
