Re: [PATCH] media: i2c: Use div64_ul() for u64-by-unsigned-long divide

2019-08-31 Thread Simon Horman
On Fri, Aug 30, 2019 at 03:48:27PM +0200, Geert Uytterhoeven wrote: > div_u64() does a 64-by-32 division, while the divisor max2175.xtal_freq > is unsigned long, thus 64-bit on 64-bit platforms. Hence the proper > function to call is div64_ul(). > > Note that this change does not have any functio

[PATCH] media: i2c: Use div64_ul() for u64-by-unsigned-long divide

2019-08-30 Thread Geert Uytterhoeven
div_u64() does a 64-by-32 division, while the divisor max2175.xtal_freq is unsigned long, thus 64-bit on 64-bit platforms. Hence the proper function to call is div64_ul(). Note that this change does not have any functional impact, as the crystal frequency must be much lower than the 32-bit limit