iio: adc: ti-ads7950: Allow to use on ACPI platforms
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 28 Jul 2017 22:20:14 +0000 (01:20 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 20 Aug 2017 14:41:11 +0000 (15:41 +0100)
commit8cfa26a77cfcad888f44c0ed902fe6c7c73783fe
tree73b0a173d60e77ccaa0e4eac3d9904bbecfd209e
parent0a60340f199136e7b74f4b279e3844abf2d45485
iio: adc: ti-ads7950: Allow to use on ACPI platforms

ACPI enabled platforms do not have a mean of regulators. Instead we use
hard coded voltage value for reference pin. When value is 0 (default) we
fall back to request a regulator.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ti-ads7950.c