Re: [PATCH] iio: adc128s052: add proper .data members in adc128_of_match table
From: Jonathan Cameron
Date: Wed Nov 23 2022 - 15:49:05 EST
On Tue, 22 Nov 2022 15:41:21 +0100
Rasmus Villemoes <linux@xxxxxxxxxxxxxxxxxx> wrote:
> On 15/11/2022 14.23, Rasmus Villemoes wrote:
> > Prior to commit bd5d54e4d49d ("iio: adc128s052: add ACPI _HID
> > AANT1280"), the driver unconditionally used spi_get_device_id() to get
> > the index into the adc128_config array.
> >
> > However, with that commit, OF-based boards now incorrectly treat all
> > supported sensors as if they are an adc128s052, because all the .data
> > members of the adc128_of_match table are implicitly 0. Our board,
> > which has an adc122s021, thus exposes 8 channels whereas it really
> > only has two.
> >
> > Fixes: bd5d54e4d49d ("iio: adc128s052: add ACPI _HID AANT1280")
> > Signed-off-by: Rasmus Villemoes <linux@xxxxxxxxxxxxxxxxxx>
> > ---
>
> Ping. Any chance this could be picked up before the merge window for 6.2
> opens?
Given it is a clear fix, but for an issue that is multiple versions old
(so I'm not sneaking it in post rc6)..
No actual rush on this, but meh I'm queuing a bunch of other stuff that
will hopefully just make it this cycle so applied to the togreg branch of iio.git
and marked for stable.
Thanks,
Jonathan