Re: [PATCH] iio: adc: Add support for TI ADC1x8s102

From: Andy Shevchenko
Date: Wed Apr 26 2017 - 06:21:25 EST


On Wed, Apr 26, 2017 at 8:37 AM, Jan Kiszka <jan.kiszka@xxxxxxxxxxx> wrote:
> On 2017-04-25 09:31, Peter Meerwald-Stadler wrote:

>> I think board-specific stuff should not go into the driver -> DT?
>
> Still looking for suggestions how to provide the external reference
> voltage as parameter. Chip select is gone now.

Unified Device Properties API.

Just
ret = device_property_read_u16();
if (ret)
...use default...

> Also, should I suggest a device tree binding even though I have no test
> case for it? My current feeling is to better leave this exercise to the
> first user on a DT platform.

But I prefer this one. One problem at a time.

--
With Best Regards,
Andy Shevchenko