mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-24 19:10:26 +00:00
hwmon: (ntc_thermistor) Ensure iio channel is of type IIO_VOLTAGE
[ Upstream commit adba657533 ]
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>
This commit is contained in:
parent
da9888ac0e
commit
2439971a06
1 changed files with 9 additions and 0 deletions
Loading…
Add table
Add a link
Reference in a new issue