From 3885d0c4a20ae7759250ea306a5ebc0e29137066 Mon Sep 17 00:00:00 2001 From: Frodo Looijaard Date: Mon, 1 Mar 1999 16:18:28 +0000 Subject: [PATCH] Alias detection typo fixed. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@287 7894878c-1315-0410-8ee3-d5d059ff63e0 --- prog/detect/detect.pl | 12 ++++++------ prog/detect/sensors-detect | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/prog/detect/detect.pl b/prog/detect/detect.pl index 735bd0d1..7f9ee693 100755 --- a/prog/detect/detect.pl +++ b/prog/detect/detect.pl @@ -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})) { diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index 735bd0d1..7f9ee693 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -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})) {