summaryrefslogtreecommitdiff
path: root/drivers/media/platform/qcom
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@s-opensource.com>2017-08-26 15:33:25 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-08-26 15:33:25 -0400
commit07aac5dc0d1b9ccbf031ef3195bf11f65f732583 (patch)
treec8977f95c8126ae78d9a1d2af1591676d1a3b173 /drivers/media/platform/qcom
parentbe744eec2327a19543215f08a7f763010ff8a39f (diff)
media: qcom: mark long long consts as such
Fix those warnings when building on i386: drivers/media/platform/qcom/camss-8x16/camss-csiphy.c:333:22: warning: constant 1000000000000 is so big it is long long drivers/media/platform/qcom/camss-8x16/camss-csiphy.c:339:32: warning: constant 1000000000000 is so big it is long long Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/platform/qcom')
-rw-r--r--drivers/media/platform/qcom/camss-8x16/camss-csiphy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/platform/qcom/camss-8x16/camss-csiphy.c b/drivers/media/platform/qcom/camss-8x16/camss-csiphy.c
index e9040b193486..072c6cf053f6 100644
--- a/drivers/media/platform/qcom/camss-8x16/camss-csiphy.c
+++ b/drivers/media/platform/qcom/camss-8x16/camss-csiphy.c
@@ -330,13 +330,13 @@ static u8 csiphy_settle_cnt_calc(struct csiphy_device *csiphy)
}
mipi_clock = pixel_clock * bpp / (2 * num_lanes);
- ui = div_u64(1000000000000, mipi_clock);
+ ui = div_u64(1000000000000LL, mipi_clock);
ui /= 2;
t_hs_prepare_max = 85000 + 6 * ui;
t_hs_prepare_zero_min = 145000 + 10 * ui;
t_hs_settle = (t_hs_prepare_max + t_hs_prepare_zero_min) / 2;
- timer_period = div_u64(1000000000000, csiphy->timer_clk_rate);
+ timer_period = div_u64(1000000000000LL, csiphy->timer_clk_rate);
settle_cnt = t_hs_settle / timer_period;
return settle_cnt;