mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-12-04 21:58:18 +00:00
(mmh)
This patch replaces the I2C bus enumeration (through sysfs) in lib/proc.c with a new function in lib/sysfs (using libsysfs). The patch also updates the init code accordingly. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3094 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
87fba1c487
commit
c277761d15
4 files changed
+74
-65
No files matched your search
+7
-3
@@ -41,11 +41,15 @@ int sensors_init(FILE *input)
|
||||
{
|
||||
int res;
|
||||
sensors_cleanup();
|
||||
sensors_init_sysfs();
|
||||
if ((res = sensors_read_proc_chips()))
|
||||
return res;
|
||||
if ((res = sensors_read_proc_bus()))
|
||||
return res;
|
||||
if (sensors_init_sysfs()) {
|
||||
if ((res = sensors_read_sysfs_bus()))
|
||||
return res;
|
||||
} else {
|
||||
if ((res = sensors_read_proc_bus()))
|
||||
return res;
|
||||
}
|
||||
sensors_yyin = input;
|
||||
if ((res = sensors_yyparse()))
|
||||
return -SENSORS_ERR_PARSE;
|
||||
|
||||
Reference in new issue
Block a user