mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-29 12:50:43 +00:00
Fix the magnitude of temperature offsets in Linux 2.6.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4751 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
196cf59489
commit
a7a75c729d
2 files changed
+7
No files matched your search
@@ -9,6 +9,7 @@ SVN HEAD
|
||||
Fix lm93 VID support for Linux 2.6
|
||||
Fix adm1024 support for Linux 2.6
|
||||
Fix maxilife support for Linux 2.6
|
||||
Fix magnitude of temperature offsets in Linux 2.6
|
||||
Makefile: Fix kernel version detection (#2187)
|
||||
Module fscher: Add missing read of control register (2.6 backport)
|
||||
Module i2c-piix4: Add ATI SB700 and SB800 support (2.6 backport)
|
||||
|
||||
@@ -290,6 +290,7 @@ static const struct match matches[] = {
|
||||
temp%d_low -> temp%d_min
|
||||
temp%d_crit -> temp%d_crit (for magnitude)
|
||||
temp%d_state -> temp%d_status
|
||||
temp%d_offset -> temp%d_offset (for magnitude)
|
||||
temp%d -> temp%d_input
|
||||
sensor%d -> temp%d_type
|
||||
AND all conversions listed in the matches[] structure above.
|
||||
@@ -414,6 +415,11 @@ static int getsysname(const sensors_chip_feature *feature, char *sysname,
|
||||
*sysmag = 0;
|
||||
return 0;
|
||||
}
|
||||
if(sscanf(name, "temp%d_offse%c%c", &num, &last, &check) == 2 && last == 't') {
|
||||
sprintf(sysname, "temp%d_offset", num);
|
||||
*sysmag = TEMPMAG;
|
||||
return 0;
|
||||
}
|
||||
if(sscanf(name, "temp%d%c", &num, &check) == 1) {
|
||||
sprintf(sysname, "temp%d_input", num);
|
||||
*sysmag = TEMPMAG;
|
||||
|
||||
Reference in new issue
Block a user