mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-29 12:50:43 +00:00
add sysfs support to sensors-detect by using 'i2cdetect -l'
instead of 'cat /proc/bus/i2c' git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2101 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
82caa7986f
commit
e3a7d54722
2 files changed
+10
-3
No files matched your search
@@ -33,15 +33,20 @@ ask CVS about it:
|
||||
Remove initialization of limits by driver.
|
||||
Module asb100: New
|
||||
Module bmcsensors: Fix voltage scaling, voltage and fan limits
|
||||
Modules ddcmon, eeprom: Add failure printks
|
||||
Module fscher: New (Fujitsu-Siemens Hermes driver)
|
||||
Module i2c-nforce2: Fix byte writes
|
||||
Module i2c-piix4: Add support for CSB6
|
||||
Module i2c-sis630: Sync with 2.6.0-X driver version
|
||||
Module it87: Add pwm and "smart guardian" support;
|
||||
add it87 sensor type support
|
||||
Module lm90: Add ADM1032 support
|
||||
Module w83781d: Fix 791d and 627hf detection
|
||||
Program eeprog: New
|
||||
Programs i2cdetect, i2cdump, i2cset: add -v (version) option;
|
||||
support sysfs for i2c bus search
|
||||
Program i2cdetect: Add -l option to list busses
|
||||
Program i2cdump: Add 'c' mode for consective address reads
|
||||
Program mkpatch: Cleanups
|
||||
Program pwmconfig: Handle multiple fans controlled by a single pwm
|
||||
Program sensord: Remove ddcmon support
|
||||
@@ -50,7 +55,7 @@ ask CVS about it:
|
||||
Fix W83627HF and W83791D detection; detect CSB6;
|
||||
Detect ADM1029,30,31,32;
|
||||
Detect W83637HF, W83697UF;
|
||||
Add it87 sensor type support;
|
||||
Add it87 sensor type support; add sysfs support
|
||||
Reduce lm80 misdetects; remove PCFxxxx "detection"
|
||||
|
||||
|
||||
|
||||
@@ -3719,7 +3719,8 @@ sub generate_modprobes
|
||||
$configfile .= "alias char-major-89 i2c-dev\n";
|
||||
|
||||
# Collect all loaded adapters
|
||||
open INPUTFILE,"/proc/bus/i2c" or die "Couldn't open /proc/bus/i2c?!?";
|
||||
# i2cdetect -l either cats /proc/bus/i2c or scans sysfs for the same information
|
||||
open INPUTFILE,"i2cdetect -l |" or die "Couldn't find i2cdetect program!!";
|
||||
while (<INPUTFILE>) {
|
||||
my ($dev_nr,$type,$adap,$algo) = /^i2c-(\S+)\s+(\S+)\s+(.*?)\s*\t\s*(.*?)\s+$/;
|
||||
next if ($type eq "dummy");
|
||||
@@ -4181,7 +4182,8 @@ sub main
|
||||
" includes address 0x69 (clock chip).\n";
|
||||
|
||||
my ($inp,@not_to_scan,$inp2);
|
||||
open INPUTFILE,"/proc/bus/i2c" or die "Couldn't open /proc/bus/i2c?!?";
|
||||
# i2cdetect -l either cats /proc/bus/i2c or scans sysfs for the same information
|
||||
open INPUTFILE,"i2cdetect -l |" or die "Couldn't find i2cdetect program!!";
|
||||
while (<INPUTFILE>) {
|
||||
my ($dev_nr,$type,$adap,$algo) = /^i2c-(\S+)\s+(\S+)\s+(.*?)\s*\t\s*(.*?)\s+$/;
|
||||
next if ($type eq "dummy");
|
||||
|
||||
Reference in new issue
Block a user