Messages in this thread | | | Date | Fri, 5 May 2017 13:40:26 +0300 | From | Mika Westerberg <> | Subject | Re: [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.
| |