]> 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>
Mon, 1 Apr 2013 02:36:42 +0000 (19:36 -0700)
commit612f9db97731850da68c2c74fc51888dbbe0774b
tree23ba8435d46862eba55d3d754077e6daf4505523
parent657e34f56740d9763438ae8d41cf2cb72ad62a39
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