]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (ntc_thermistor) Add DT with IIO support to NTC thermistor driver
authorNaveen Krishna Chatradhi <ch.naveen@samsung.com>
Wed, 13 Mar 2013 04:08:20 +0000 (09:38 +0530)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 8 Apr 2013 04:16:38 +0000 (21:16 -0700)
commitbb0ae243d86b2b050557ed42a770029b72f4dc34
tree743aa1c1d90be98c11d297e055c557162e98d8c3
parent14db96c093f23f6c50f8bba90da5c27b636034b8
hwmon: (ntc_thermistor) Add DT with IIO support to NTC thermistor driver

This patch adds DT support to NTC driver to parse the
platform data.

Also adds the support to work as an iio device client.

During the probe ntc driver gets the respective channels of ADC
and uses iio_raw_read calls to get the ADC converted value.

Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
[Guenter Roeck: fixed Kconfig dependencies; use ERR_CAST]
Tested-by: Doug Anderson <dianders@chromium.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Documentation/devicetree/bindings/hwmon/ntc_thermistor.txt [new file with mode: 0644]
drivers/hwmon/Kconfig
drivers/hwmon/ntc_thermistor.c
include/linux/platform_data/ntc_thermistor.h