Re: [PATCH v3 6/6] iio: proximity: hx9023s: use plain division in get_samp_freq
From: Andy Shevchenko
Date: Fri Dec 04 2026 - 12:45:02 EST
On Fri, Dec 04, 2026 at 09:58:03PM +0530, Arnav Kapoor wrote:
> hx9023s_get_samp_freq() computes the fractional part of the sampling
> frequency with div_u64(), but nothing here needs 64 bits: KILO % odr
> is at most 1000, so the dividend is at most 10^9 and fits in an
> unsigned long on 32-bit as well. Use a plain division, and drop the
> linux/math64.h include, which has no other user left after the
> previous patches.
>
> No functional change.
Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxx>
--
With Best Regards,
Andy Shevchenko