2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-29 13:28:01 +00:00

sensors-detect now use smbus_quick command for probes. sensors-detect

no longer tries to load i2c-proc. TODO list updates.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@504 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Frodo Looijaard 1999-07-21 20:11:27 +00:00
parent 2dbe720b09
commit abf15cf902
2 changed files with 10 additions and 25 deletions

8
TODO
View File

@ -1,5 +1,13 @@
Many, many things. Most notably:
I2C CODE CHANGES
================
* Test all modules
* Add code and supporting files to compile modules into the main kernel
* Write a mkpatch script, as in the i2c tree
* Check the i2c-isa code, use 16 bit address field in i2c struct.
KERNEL MODULES
==============

View File

@ -970,7 +970,7 @@ sub scan_adapter
i2c_set_slave_addr(\*FILE,$addr) or print("Can't set address to $_?!?\n"),
next;
next unless i2c_smbus_read_byte(\*FILE) >= 0;
next unless i2c_smbus_write_quick(\*FILE,$SMBUS_WRITE) >= 0;
printf "Client found at address 0x%02x\n",$addr;
foreach $chip (@chip_ids) {
@ -1472,8 +1472,6 @@ sub generate_modprobes
my $configfile = "";
# These are always needed
$modprobes .= "# General I2C modules\n";
$modprobes .= "modprobe i2c-proc\n";
$configfile .= "# I2C module options\n";
$configfile .= "alias char-major-89 i2c-dev\n";
@ -1641,28 +1639,7 @@ sub main
}
}
print " To continue, we need modules `i2c-proc' and `i2c-dev' to be ",
"loaded.\n";
if (contains "i2c-proc", @modules_list) {
print "i2c-proc is already loaded.\n";
} else {
if ($> != 0) {
print " i2c-proc is not loaded, and you are not root. I can't ",
"continue.\n";
exit;
} else {
print " i2c-proc is not loaded. May I load it now? (YES/no): ";
if (<STDIN> =~ /^\s*[Nn]/) {
print " Sorry, in that case I can't continue.\n";
exit;
} elsif (system "modprobe","i2c-proc") {
print " Loading failed ($!), aborting.\n";
exit;
} else {
print " Module loaded succesfully.\n";
}
}
}
print " To continue, we need module `i2c-dev' to be loaded.\n";
if (contains "i2c-dev", @modules_list) {
print "i2c-dev is already loaded.\n";
} else {