From: Chris Lesiak Date: Tue, 26 May 2015 20:40:44 +0000 (-0500) Subject: hwmon: (ntc_thermistor) Ensure iio channel is of type IIO_VOLTAGE X-Git-Tag: omap-for-v4.3/legacy-v2-signed~283^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=adba657533bdd255f7b78bc8a324091f46b294cd;p=pandora-kernel.git 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 Cc: stable@vger.kernel.org # 3.10+ Signed-off-by: Guenter Roeck --- Reading git-diff-tree failed