Count DMI chassis type 8 as a laptop. Reported by Francis Moreau.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5936 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2011-02-27 12:08:43 +00:00
1 parent 17aba10bf3
commit f561412fbd
2 files changed
+3 -2

No files matched your search

+1
View File
@@ -30,6 +30,7 @@ SVN HEAD
Add detection of AMD family 12h and 14h thermal sensors
Add detection of EMC6D103S
Add detection of National Semiconductor LM75A
Count DMI chassis type 8 as a laptop
3.2.0 (2010-10-10)
libsensors: Increase MAX_SENSORS_PER_TYPE to 24
+2 -2
View File
@@ -2730,8 +2730,8 @@ sub dmi_match
sub is_laptop
{
return 0 unless $dmi{chassis_type};
return 1 if $dmi{chassis_type} =~ m/(Laptop|Notebook|Hand Held)/i;
return 1 if $dmi{chassis_type} =~ m/^(9|10|11|14)$/;
return 1 if $dmi{chassis_type} =~ m/(Portable|Laptop|Notebook|Hand Held)/i;
return 1 if $dmi{chassis_type} =~ m/^(8|9|10|11|14)$/;
return 0;
}