Re: [PATCH v2 0/3] iio: adc: Provide mult_fract() and make use of it

From: Jonathan Cameron

Date: Sat Nov 21 2026 - 17:23:21 EST


On Fri, 20 Nov 2026 11:28:35 +0100
Joshua Crofts <crofts@xxxxxxxxxx> wrote:

> On 19/11/2026 20:19, Andy Shevchenko wrote:
> > In a couple of IIO ADC driver the suggested new helper mult_fract()
> > may be used. So, provide it and update the straightforward users.
> >
> > The helper has potential treewide, hence it's provided directly in math.h.
> >
> > In v2:
> > - updated commit message in patch 1 (Sashiko, c/o Joshua)
> > - used local variable to avoid double evaluation (Sashiko, c/o Joshua)
> > - collected tags (Marcelo)
> >
> > v1: <20261117091638.1463621-1-andriy.shevchenko@xxxxxxxxxxxxxxx>
> >
> > Andy Shevchenko (3):
> > math.h: Add mult_fract() that takes struct __Txx_fract as argument
> > iio: adc: ad4030: Switch to use mult_fract() helper
> > iio: adc: ltc2378: Switch to use mult_fract() helper
> >
> > drivers/iio/adc/ad4030.c | 13 ++++++-------
> > drivers/iio/adc/ltc2378.c | 4 +++-
> > include/linux/math.h | 7 +++++++
> > 3 files changed, 16 insertions(+), 8 deletions(-)
> >
>
> Fine now.
>
> Reviewed-by: Joshua Crofts <crofts@xxxxxxxxxx>
>
I briefly wondered if we should wait for some tags related to math.h
but then I couldn't figure out who would be paying attention to that other
than Andy. So I guess we are fine without.

Applied to the testing branch of iio.git.

Thanks,

Jonathan