mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-02 13:30:30 +00:00
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:
1 parent
2b7b632121
commit
afde5c3eff
1 file changed
+4
-12
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user