Do not ask the user its preference between SMBus and ISA: always

use ISA, as it is faster and generally more reliable.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3236 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2006-01-19 20:28:00 +00:00
1 parent c9bc9768a6
commit 913221c126
1 file changed
+2 -10
+2 -10
View File
@@ -5224,17 +5224,9 @@ sub main
}
print "\n\n",
" I will now generate the commands needed to load the I2C modules.\n",
" Sometimes, a chip is available both through the ISA bus and an ",
"I2C bus.\n",
" ISA bus access is faster, but you need to load an additional driver ",
"module\n",
" for it. If you have the choice, do you want to use the ISA bus or ",
"the\n",
" I2C/SMBus (ISA/smbus)? ";
my $use_isa = not <STDIN> =~ /\s*[Ss]/;
"I will now generate the commands needed to load the I2C modules.\n";
my ($modprobes,$configfile) = generate_modprobes $use_isa;
my ($modprobes, $configfile) = generate_modprobes 1; # 1 == prefer ISA
print "\nTo make the sensors modules behave correctly, add these lines to\n",
"$modules_conf:\n\n";
print "#----cut here----\n";