diff options
author | Naveen Krishna Chatradhi <ch.naveen@samsung.com> | 2013-03-13 09:38:20 +0530 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2013-04-07 21:16:38 -0700 |
commit | 9e8269de100dd0be1199778dc175ff22417aebd2 (patch) | |
tree | 743aa1c1d90be98c11d297e055c557162e98d8c3 /drivers/hwmon/Kconfig | |
parent | 4b5e536b0e948b5c756aa1d57218371c242f768d (diff) | |
download | op-kernel-dev-9e8269de100dd0be1199778dc175ff22417aebd2.zip op-kernel-dev-9e8269de100dd0be1199778dc175ff22417aebd2.tar.gz |
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>
Diffstat (limited to 'drivers/hwmon/Kconfig')
-rw-r--r-- | drivers/hwmon/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig index aaa14f4..47d2176 100644 --- a/drivers/hwmon/Kconfig +++ b/drivers/hwmon/Kconfig @@ -899,6 +899,7 @@ config SENSORS_MCP3021 config SENSORS_NTC_THERMISTOR tristate "NTC thermistor support" + depends on (!OF && !IIO) || (OF && IIO) help This driver supports NTC thermistors sensor reading and its interpretation. The driver can also monitor the temperature and |