Re: [PATCH] staging: iio: impedance-analyzer: ad5933: use div64_ul() instead of do_div()
From: Archit Anant
Date: Tue Feb 17 2026 - 11:47:10 EST
On Tue, Feb 17, 2026 at 12:34 AM David Lechner <dlechner@xxxxxxxxxxxx> wrote:
> Actually, I just saw this was in staging, so I guess not breaking userspace
> isn't the top priority if there the other way is objectively better. I would
> assume that testing/measurement could show which is actually correct.
Since I don't have the hardware to perform those measurements and confirm
if the precision improvement is valid or a regression, I will take the
conservative
approach for v2.
I will send a v2 that only replaces do_div() with div64_ul() and uses
BIT_ULL(27), preserving the original (mclk / 4) logic to guarantee no
behavioral change.
--
Sincerely,
Archit Anant