From 163871a6b22eb6a273f106e85587a4b5f0b4a653 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Thu, 3 Mar 2005 21:05:57 +0000 Subject: [PATCH] Userspace support for the ADT7461 (patch by James Chapman). git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2920 7894878c-1315-0410-8ee3-d5d059ff63e0 --- etc/sensors.conf.eg | 2 +- lib/chips.c | 1 + lib/chips.h | 3 ++- prog/detect/sensors-detect | 2 +- prog/sensors/main.c | 1 + 5 files changed, 6 insertions(+), 3 deletions(-) diff --git a/etc/sensors.conf.eg b/etc/sensors.conf.eg index 03da07c4..a1e93745 100644 --- a/etc/sensors.conf.eg +++ b/etc/sensors.conf.eg @@ -1784,7 +1784,7 @@ chip "max1619-*" set temp2_hyst 40 -chip "lm90-*" "adm1032-*" "lm86-*" "max6657-*" +chip "lm90-*" "adm1032-*" "lm86-*" "max6657-*" "adt7461-*" label temp1 "M/B Temp" label temp2 "CPU Temp" diff --git a/lib/chips.c b/lib/chips.c index 2ac8cb10..d00fc633 100644 --- a/lib/chips.c +++ b/lib/chips.c @@ -5349,6 +5349,7 @@ sensors_chip_features sensors_chip_features_list[] = { SENSORS_LM99_PREFIX, lm90_features }, { SENSORS_LM86_PREFIX, lm90_features }, { SENSORS_MAX6657_PREFIX, lm90_features }, + { SENSORS_ADT7461_PREFIX, lm90_features }, { SENSORS_LM63_PREFIX, lm63_features }, { SENSORS_MAX1619_PREFIX, max1619_features }, { SENSORS_XEONTEMP_PREFIX, xeontemp_features }, diff --git a/lib/chips.h b/lib/chips.h index 2dab066c..cf5ae949 100644 --- a/lib/chips.h +++ b/lib/chips.h @@ -475,13 +475,14 @@ #define SENSORS_LM85_ZONE3_RANGE 100 /* RW -- zone3_range */ #define SENSORS_LM85_ZONE3_SMOOTH 101 /* RW -- zone3_smooth */ -/* LM86/LM89/LM90/LM99/ADM1032/MAX6657 chips */ +/* LM86/LM89/LM90/LM99/ADM1032/MAX6657/ADT7461 chips */ #define SENSORS_LM90_PREFIX "lm90" #define SENSORS_ADM1032_PREFIX "adm1032" #define SENSORS_LM99_PREFIX "lm99" #define SENSORS_LM86_PREFIX "lm86" #define SENSORS_MAX6657_PREFIX "max6657" +#define SENSORS_ADT7461_PREFIX "adt7461" #define SENSORS_LM90_LOCAL_TEMP 51 /* R */ #define SENSORS_LM90_LOCAL_HIGH 52 /* RW */ diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index 34450aab..3a2171db 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -1327,7 +1327,7 @@ use subs qw(mtp008_detect lm78_detect lm78_isa_detect lm78_alias_detect }, { name => "Analog Devices ADT7461", - driver => "to-be-written", + driver => "lm90", i2c_addrs => [0x4c], i2c_detect => sub { lm90_detect 5, @_ }, }, diff --git a/prog/sensors/main.c b/prog/sensors/main.c index c2344105..0621ef11 100644 --- a/prog/sensors/main.c +++ b/prog/sensors/main.c @@ -393,6 +393,7 @@ struct match matches[] = { { "lm99", print_lm90 }, { "lm86", print_lm90 }, { "max6657", print_lm90 }, + { "adt7461", print_lm90 }, { "lm63", print_lm63 }, { "xeontemp", print_xeontemp }, { "max6650", print_max6650 },