]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerSasha Levin <sasha.levin@oracle.com>
Tue, 9 Jun 2015 17:43:55 +0000 (13:43 -0400)
commit2439971a06cb72e5c0bc0cdf33701a79fbb2c8d8
treea1d38f3687c3452c9a0e8955062c6b962a7aadf7
parentda9888ac0e1a4c923ad3c4978d310bbf7c32f0d7
hwmon: (ntc_thermistor) Ensure iio channel is of type IIO_VOLTAGE

[ Upstream commit adba657533bdd255f7b78bc8a324091f46b294cd ]

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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/hwmon/ntc_thermistor.c