Re: [PATCH] iio: addac: ad74413r: fix integer promotion bug in ad74413_get_input_current_offset()

From: Jonathan Cameron
Date: Wed Nov 23 2022 - 15:36:48 EST


On Fri, 18 Nov 2022 14:29:23 +0100
Rasmus Villemoes <linux@xxxxxxxxxxxxxxxxxx> wrote:

> On 18/11/2022 14.17, Sa, Nuno wrote:
>
> >> Casting to int avoids that promotion and results in the correct -32767
> >> output.
> >>
> >> Signed-off-by: Rasmus Villemoes <linux@xxxxxxxxxxxxxxxxxx>
> >> ---
> >
> > After adding proper Fixes: tag,
> >
> > Reviewed-by: Nuno Sá <nuno.sa@xxxxxxxxxx>
>
> That would be
>
> Fixes: fea251b6a5db (iio: addac: add AD74413R driver)
>
Applied to the togreg branch of iio.git (as very late in cycle)
and marked for stable.

Thanks,

Jonathan

> Thanks,
> Rasmus
>