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
This commit is contained in:
Jean Delvare committed 2004-08-08 20:10:24 +00:00
1 parent a942af3cfc
commit 76fd9cd677
2 files changed
+4 -1

No files matched your search

+2 -1
View File
@@ -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 }
+2
View File
@@ -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;
}