]> 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>
Sun, 17 Mar 2013 23:28:00 +0000 (16:28 -0700)
commite6137a4e9de28704f41ec79ed3d486a9b32f2aa6
tree7c7959b4a5fc798a0163b6ce84971695efcaa143
parent94a74a489e11c3dab0582e8d22d868b18df5937a
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