Skip to content
Commit adba6575 authored by Chris Lesiak's avatar Chris Lesiak Committed by Guenter Roeck
Browse files

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: default avatarChris Lesiak <chris.lesiak@licor.com>
Cc: stable@vger.kernel.org # 3.10+
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent ba155e2d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment