Re: [PATCH] iio: adc: ad7298: rework external ref setup & remove platform data

2020-10-10 Thread Jonathan Cameron
On Thu, 1 Oct 2020 17:10:48 +0300 Alexandru Ardelean wrote: > This change removes the old platform data for ad7298. It is only used to > provide whether to use an external regulator as a reference. > > So, the logic is inverted a bit. The driver now tries to obtain a > regulator. If one is

[PATCH] iio: adc: ad7298: rework external ref setup & remove platform data

2020-10-01 Thread Alexandru Ardelean
This change removes the old platform data for ad7298. It is only used to provide whether to use an external regulator as a reference. So, the logic is inverted a bit. The driver now tries to obtain a regulator. If one is provided, then the external ref is used. The rest of the logic should work