Re: [PATCH] iio: adc: remove unused private data assigned with spi_set_drvdata()

From: Jonathan Cameron
Date: Thu May 13 2021 - 10:55:53 EST


On Thu, 13 May 2021 15:14:57 +0300
Alexandru Ardelean <ardeleanalex@xxxxxxxxx> wrote:

> On Thu, May 13, 2021 at 3:06 PM Alexandru Lazar <alazar@xxxxxxxxxxxxx> wrote:
> >
> >
> > > Some drivers were copied from drivers that fit the criteria described
> > > above. In any case, in order to prevent more drivers from being used as
> > > example (and have spi_set_drvdata() needlessly set), this change removes it
> > > from the IIO ADC group.
> >
> > Oh yeah, I'm pretty sure that's how I ended up adding it in the max1241
> > code, too. Code monkey presents humble apologies :-).
>
> Well, I also added one in the AD9467 driver in the same manner.
> So ¯\_(ツ)_/¯
>
All look correct to me. I'll let this sit on the list for a few days before
picking it up.

Thanks,

Jonathan

> >
> > All the best,
> > Alex