]> git.karo-electronics.de Git - karo-tx-linux.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>
Thu, 21 Mar 2013 15:09:42 +0000 (08:09 -0700)
commit145ef9c58f276620e097115e821ce3be71c1a18e
treef9c0b6edc9e7e9641e2fe6c94e92b8034655be15
parentd1778a876612fa198f67df4cb48de3db1d728b76
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]
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