Re: [PATCH v14 03/11] iio: afe: rescale: add offset support

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

 



On Tue, Feb 8, 2022 at 4:04 AM Liam Beguin <liambeguin@xxxxxxxxx> wrote:
>
> This is a preparatory change required for the addition of temperature
> sensing front ends.

...

> +               if (iio_channel_has_info(rescale->source->channel,
> +                                        IIO_CHAN_INFO_OFFSET)) {
> +                       ret = iio_read_channel_offset(rescale->source,
> +                                                     &schan_off, NULL);

> +                       if (ret != IIO_VAL_INT)
> +                               return ret < 0 ? ret : -EOPNOTSUPP;

Wonder if this actually should be

   if (ret < 0)
       return ret;
   if (ret != ...)
       return -EOP...;

> +               }

-- 
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