Refactor code in andigilog_detect.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5487 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2008-12-01 13:44:12 +00:00
1 parent 2b7b632121
commit afde5c3eff
1 file changed
+4 -12
+4 -12
View File
@@ -3777,18 +3777,10 @@ sub andigilog_detect
return if $mid != 0x61; # Andigilog
if ($chip == 0) {
return if $cid != 0x62;
return 5;
}
if ($chip == 1) {
return if $cid != 0x69;
return 5;
}
if ($chip == 2) {
return if $cid != 0x6C && $cid != 0x6D;
return 5;
}
return if $chip == 0 && $cid != 0x62;
return if $chip == 1 && $cid != 0x69;
return if $chip == 2 && ($cid != 0x6C && $cid != 0x6D);
return 5;
}
# Registers used: