]> 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)
committerJiri Slaby <jslaby@suse.cz>
Wed, 3 Jun 2015 09:33:07 +0000 (11:33 +0200)
commit6ca3b824c2d270188fbaf1a402b3f39ef803aeba
treeb372d6b6ffaa57db98621df3eee76828ba060cf1
parentdb02077307011751a0225845664bb212d76e87bc
hwmon: (ntc_thermistor) Ensure iio channel is of type IIO_VOLTAGE

commit adba657533bdd255f7b78bc8a324091f46b294cd upstream.

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>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/hwmon/ntc_thermistor.c