Re: [PATCH v9 6/7] iio: adc: ad9467: convert to backend framework

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Feb 6, 2024 at 6:51 PM Nuno Sá <noname.nuno@xxxxxxxxx> wrote:
> On Tue, 2024-02-06 at 16:20 +0200, Andy Shevchenko wrote:
> > On Tue, Feb 6, 2024 at 12:08 PM Nuno Sa via B4 Relay
> > <devnull+nuno.sa.analog.com@xxxxxxxxxx> wrote:

...

> > > +       st->back = devm_iio_backend_get(&st->spi->dev, NULL);
> > > +       /* If not found, don't error out as we might have legacy DT property */
> > > +       if (!IS_ERR(st->back))
> > > +               return 0;
> > > +       if (PTR_ERR(st->back) != -ENOENT)
> > > +               return PTR_ERR(st->back);
> >
> > This looks hackish...
>
> This was suggested by Jonathan so I'm keen in leaving it as-is

I think I proposed how to improve it. Jonathan?

-- 
With Best Regards,
Andy Shevchenko





[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux