commit | adba657533bdd255f7b78bc8a324091f46b294cd | [log] [tgz] |
---|---|---|
author | Chris Lesiak <chris.lesiak@licor.com> | Tue May 26 15:40:44 2015 -0500 |
committer | Guenter Roeck <linux@roeck-us.net> | Tue May 26 17:22:49 2015 -0700 |
tree | 523aa28acd02d21e19e3860c5ad943585d075b82 | |
parent | ba155e2d21f6bf05de86a78dbe5bfd8757604a65 [diff] |
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>