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)
commit9e8269de100dd0be1199778dc175ff22417aebd2
tree743aa1c1d90be98c11d297e055c557162e98d8c3
parent4b5e536b0e948b5c756aa1d57218371c242f768d
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