From 76fd9cd6777a8f33dd70f5b96c328832ffc4db92 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Sun, 8 Aug 2004 20:10:24 +0000 Subject: [PATCH] Fix LM83 critical limit in Linux 2.6 (support both old temp_crit and new temp3_crit). git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2655 7894878c-1315-0410-8ee3-d5d059ff63e0 --- lib/chips.c | 3 ++- lib/proc.c | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/chips.c b/lib/chips.c index fde3b26a..bb696cf7 100644 --- a/lib/chips.c +++ b/lib/chips.c @@ -807,7 +807,8 @@ static sensors_chip_feature lm83_features[] = SENSORS_LM83_REMOTE3_TEMP, RW, LM83_SYSCTL_REMOTE3_TEMP, VALUE(1), 0 }, { SENSORS_LM83_TCRIT, "tcrit", NOMAP, NOMAP, - RW, LM83_SYSCTL_TCRIT, VALUE(1), 0 }, + RW, LM83_SYSCTL_TCRIT, VALUE(1), 0, + "temp3_crit", 3, "temp_crit" }, { SENSORS_LM83_ALARMS, "alarms", NOMAP, NOMAP, R, LM83_SYSCTL_ALARMS, VALUE(1), 0 }, { 0 } diff --git a/lib/proc.c b/lib/proc.c index baaf4c8c..e10e01c8 100644 --- a/lib/proc.c +++ b/lib/proc.c @@ -501,6 +501,8 @@ int getsysname(const sensors_chip_feature *feature, char *sysname, *sysmag = feature->sysscaling; else *sysmag = feature->scaling; + if(feature->altsysname != NULL) + strcpy(altsysname, feature->altsysname); return 0; }