2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-09-05 00:35:35 +00:00

Alias detection typo fixed.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@287 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Frodo Looijaard
1999-03-01 16:18:28 +00:00
parent bae506f2df
commit 3885d0c4a2
2 changed files with 12 additions and 12 deletions

View File

@@ -826,13 +826,13 @@ sub add_isa_to_chips_detected
not exists $new_misdetected_ref->[$i]->{isa_addr} and
defined $alias_detect and
$new_misdetected_ref->[$i]->{chipname} eq $datahash->{chipname}) {
open FILE,"/dev/i2c-$new_misdetected_ref->[$i]->{devnr}" or
open FILE,"/dev/i2c-$new_misdetected_ref->[$i]->{i2c_devnr}" or
print("Can't open ",
"/dev/i2c-$new_misdetected_ref->[$i]->{devnr}?!?\n"),
"/dev/i2c-$new_misdetected_ref->[$i]->{i2c_devnr}?!?\n"),
next;
i2c_set_slave_addr \*FILE,$new_misdetected_ref->[$i]->{address} or
print("Can't set I2C address for ",
"/dev/i2c-$new_misdetected_ref->[$i]->{devnr}?!?\n"),
"/dev/i2c-$new_misdetected_ref->[$i]->{i2c_devnr}?!?\n"),
next;
if (&$alias_detect ($datahash->{isa_addr},\*FILE,
$new_misdetected_ref->[$i]->{i2c_addr})) {
@@ -850,13 +850,13 @@ sub add_isa_to_chips_detected
not exists $new_detected_ref->[$i]->{isa_addr} and
defined $alias_detect and
$new_detected_ref->[$i]->{chipname} eq $datahash->{chipname}) {
open FILE,"/dev/i2c-$new_detected_ref->[$i]->{devnr}" or
open FILE,"/dev/i2c-$new_detected_ref->[$i]->{i2c_devnr}" or
print("Can't open ",
"/dev/i2c-$new_detected_ref->[$i]->{devnr}?!?\n"),
"/dev/i2c-$new_detected_ref->[$i]->{i2c_devnr}?!?\n"),
next;
i2c_set_slave_addr \*FILE,$new_detected_ref->[$i]->{address} or
print("Can't set I2C address for ",
"/dev/i2c-$new_detected_ref->[$i]->{devnr}?!?\n"),
"/dev/i2c-$new_detected_ref->[$i]->{i2c_devnr}?!?\n"),
next;
if (&$alias_detect ($datahash->{isa_addr},\*FILE,
$new_detected_ref->[$i]->{i2c_addr})) {