lkml.org 
[lkml]   [2017]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3] iio: adc: Add support for TI ADC108S102 and ADC128S102
On Fri, May 05, 2017 at 12:23:26PM +0200, Jan Kiszka wrote:
> >> + } else {
> >> + st->reg = devm_regulator_get(&spi->dev, "vref");
> >> + if (IS_ERR(st->reg))
> >> + return PTR_ERR(st->reg);
> >
> > This should be an optional regulator and in case of ACPI you just don't
> > have it.
>
> It's mandatory for this DT case, so I will not change that.

Well, it would be better if you don't need to deviate in the driver like
this. And it clearly is optional because in case of ACPI you don't need
it.

Not my call, though.

\
 
 \ /
  Last update: 2017-05-05 12:41    [W:0.193 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site