mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-29 21:08:19 +00:00
Support 2.6 gl518sm driver.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2250 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
e2420aea18
commit
db27a07183
2 files changed
+22
-3
No files matched your search
+19
@@ -427,6 +427,9 @@ int sensors_write_proc(sensors_chip_name name, int feature, double value)
|
||||
in%d_max -> in_max%d
|
||||
in%d_min -> in_min%d
|
||||
in%d -> in_input%d
|
||||
vin%d_max -> in_max%d
|
||||
vin%d_min -> in_min%d
|
||||
vin%d -> in_input%d
|
||||
temp%d_over -> temp_max%d
|
||||
temp%d_hyst -> temp_hyst%d
|
||||
temp%d_max -> temp_max%d
|
||||
@@ -530,6 +533,22 @@ int getsysname(const sensors_chip_feature *feature, char *sysname, int *sysmag)
|
||||
return 0;
|
||||
}
|
||||
|
||||
if(sscanf(name, "vin%d_mi%c%c", &num, &last, &check) == 2 && last == 'n') {
|
||||
sprintf(sysname, "in_min%d", num);
|
||||
*sysmag = INMAG;
|
||||
return 0;
|
||||
}
|
||||
if(sscanf(name, "vin%d_ma%c%c", &num, &last, &check) == 2 && last == 'x') {
|
||||
sprintf(sysname, "in_max%d", num);
|
||||
*sysmag = INMAG;
|
||||
return 0;
|
||||
}
|
||||
if(sscanf(name, "vin%d%c", &num, &check) == 1) {
|
||||
sprintf(sysname, "in_input%d", num);
|
||||
*sysmag = INMAG;
|
||||
return 0;
|
||||
}
|
||||
|
||||
if(sscanf(name, "pwm%d%c", &num, &check) == 1) {
|
||||
strcpy(sysname, name);
|
||||
*sysmag = 0;
|
||||
|
||||
Reference in new issue
Block a user