Re: [PATCH v2] iio: adc: ad7887: invert/rework external ref logic

2020-10-10 Thread Jonathan Cameron
On Fri, 2 Oct 2020 11:27:23 +0300 Alexandru Ardelean wrote: > This change inverts/reworks the logic to use an external reference via a > provided regulator. > > Now the driver tries to obtain a regulator. If one is found, then it is > used. The rest of the driver logic already checks if there

[PATCH v2] iio: adc: ad7887: invert/rework external ref logic

2020-10-02 Thread Alexandru Ardelean
This change inverts/reworks the logic to use an external reference via a provided regulator. Now the driver tries to obtain a regulator. If one is found, then it is used. The rest of the driver logic already checks if there is a non-NULL reference to a regulator, so it should be fine.