mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-31 06:15:15 +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:
@@ -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