mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-31 06:15:15 +00:00
Change the order of parameters of add_isa_to_chips_detected(). It
makes more sense to have the optional parameter last. git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5493 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
@@ -2523,7 +2523,7 @@ sub add_i2c_to_chips_detected
|
||||
# Returns: 0 if it is not an alias, datahash reference if it is.
|
||||
sub add_isa_to_chips_detected
|
||||
{
|
||||
my ($alias_detect, $chipdriver, $datahash) = @_;
|
||||
my ($chipdriver, $datahash, $alias_detect) = @_;
|
||||
my ($i, $new_detected_ref, $detected_ref, $main_entry, $isalias);
|
||||
|
||||
# First determine where the hash has to be added.
|
||||
@@ -2786,9 +2786,9 @@ sub scan_isa_bus
|
||||
isa_addr => $addr,
|
||||
chipname => $chip->{name},
|
||||
};
|
||||
$new_hash = add_isa_to_chips_detected($chip->{alias_detect},
|
||||
$chip->{driver},
|
||||
$new_hash);
|
||||
$new_hash = add_isa_to_chips_detected($chip->{driver},
|
||||
$new_hash,
|
||||
$chip->{alias_detect});
|
||||
if ($new_hash) {
|
||||
printf " Alias of the chip on I2C bus `%s', address 0x%02x\n",
|
||||
$i2c_adapters[$new_hash->{i2c_devnr}]->{name},
|
||||
@@ -2909,8 +2909,8 @@ sub probe_superio
|
||||
isa_addr => $addr,
|
||||
chipname => $chip->{name}
|
||||
};
|
||||
add_isa_to_chips_detected($chip->{alias_detect}, $chip->{driver},
|
||||
$new_hash);
|
||||
add_isa_to_chips_detected($chip->{driver}, $new_hash,
|
||||
$chip->{alias_detect});
|
||||
}
|
||||
|
||||
# Detection routine for non-standard SMSC Super I/O chips
|
||||
@@ -3013,7 +3013,7 @@ sub scan_cpu
|
||||
conf => $confidence,
|
||||
chipname => $entry->{name},
|
||||
};
|
||||
add_isa_to_chips_detected(undef, $entry->{driver}, $new_hash);
|
||||
add_isa_to_chips_detected($entry->{driver}, $new_hash);
|
||||
} else {
|
||||
print "No\n";
|
||||
}
|
||||
|
Reference in New Issue
Block a user