mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-10 16:30:50 +00:00
libsensors: Kill procfs support, part 1.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4462 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
c8b02ddfa3
commit
fea1d9a1bb
7 files changed
+41
-218
No files matched your search
+4
-8
@@ -21,7 +21,6 @@
|
||||
#include <stdio.h>
|
||||
#include "sensors.h"
|
||||
#include "data.h"
|
||||
#include "proc.h"
|
||||
#include "error.h"
|
||||
#include "access.h"
|
||||
#include "conf.h"
|
||||
@@ -42,13 +41,10 @@ int sensors_init(FILE *input)
|
||||
{
|
||||
int res;
|
||||
sensors_cleanup();
|
||||
if (sensors_init_sysfs()) {
|
||||
if ((res = sensors_read_sysfs_bus()) || (res = sensors_read_sysfs_chips()))
|
||||
return res;
|
||||
} else {
|
||||
if ((res = sensors_read_proc_bus()) || (res = sensors_read_proc_chips()))
|
||||
return res;
|
||||
}
|
||||
if (!sensors_init_sysfs())
|
||||
return -SENSORS_ERR_PROC;
|
||||
if ((res = sensors_read_sysfs_bus()) || (res = sensors_read_sysfs_chips()))
|
||||
return res;
|
||||
if ((res = sensors_scanner_init(input)))
|
||||
return -SENSORS_ERR_PARSE;
|
||||
if ((res = sensors_yyparse()))
|
||||
|
||||
Reference in new issue
Block a user