]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (ntc_thermistor) Ensure iio channel is of type IIO_VOLTAGE
authorChris Lesiak <chris.lesiak@licor.com>
Tue, 26 May 2015 20:40:44 +0000 (15:40 -0500)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 27 May 2015 00:22:49 +0000 (17:22 -0700)
commit765417788f3ebcbbd4718563351d4fa5023d63c2
tree523aa28acd02d21e19e3860c5ad943585d075b82
parent7ea797fb7fe5c494f95e30c47c07c23308fb498e
hwmon: (ntc_thermistor) Ensure iio channel is of type IIO_VOLTAGE

When configured via device tree, the associated iio device needs to be
measuring voltage for the conversion to resistance to be correct.
Return -EINVAL if that is not the case.

Signed-off-by: Chris Lesiak <chris.lesiak@licor.com>
Cc: stable@vger.kernel.org # 3.10+
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/ntc_thermistor.c