Add driver for AD7414 i2c temperature sensor
PATCH 1/1 Add driver for AD7414 i2c temperature sensor
Here is a rework based on Jean Delvare's suggestions.
One change that may not be apparent is that the alert bit is active low. I feel that it reads wrong to have "cat temp_alert" return 1 when the alert is off. So I invert this bit. Let me know how you feel about this.
Cheers,
Sean
Signed-off-by Sean MacLennan <[email protected]>
drivers/hwmon/Kconfig +10 -0
@@ -57,6 +57,16 @@ config SENSORS_ABITUGURU3 This driver can also be built as a module. If so, the module will be called abituguru3. +config SENSORS_AD7414 + tristate "Analog Devices AD7414" + depends on I2C && EXPERIMENTAL + help + If you say yes here you get support for the Analog Devices + AD7414 temperature monitoring chip. + + This driver can also be built as a module. If so, the module + will be called ad7414. + config SENSORS_AD7418 tristate "Analog Devices AD7416, AD7417 and AD7418" depends on I2C && EXPERIMENTAL
drivers/hwmon/Makefile +1 -0
@@ -15,6 +15,7 @@ obj-$(CONFIG_SENSORS_W83791D) += w83791d.o obj-$(CONFIG_SENSORS_ABITUGURU) += abituguru.o obj-$(CONFIG_SENSORS_ABITUGURU3)+= abituguru3.o +obj-$(CONFIG_SENSORS_AD7414) += ad7414.o obj-$(CONFIG_SENSORS_AD7418) += ad7418.o obj-$(CONFIG_SENSORS_ADM1021) += adm1021.o obj-$(CONFIG_SENSORS_ADM1025) += adm1025.o
drivers/hwmon/ad7414.c new file +245 -0
245 lines not on this page · raw message
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors