Skip to content

Commit 07aac5d

Browse files
committed
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 <[email protected]>
1 parent be744ee commit 07aac5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/media/platform/qcom/camss-8x16/camss-csiphy.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,13 +330,13 @@ static u8 csiphy_settle_cnt_calc(struct csiphy_device *csiphy)
330330
}
331331

332332
mipi_clock = pixel_clock * bpp / (2 * num_lanes);
333-
ui = div_u64(1000000000000, mipi_clock);
333+
ui = div_u64(1000000000000LL, mipi_clock);
334334
ui /= 2;
335335
t_hs_prepare_max = 85000 + 6 * ui;
336336
t_hs_prepare_zero_min = 145000 + 10 * ui;
337337
t_hs_settle = (t_hs_prepare_max + t_hs_prepare_zero_min) / 2;
338338

339-
timer_period = div_u64(1000000000000, csiphy->timer_clk_rate);
339+
timer_period = div_u64(1000000000000LL, csiphy->timer_clk_rate);
340340
settle_cnt = t_hs_settle / timer_period;
341341

342342
return settle_cnt;

0 commit comments

Comments
 (0)