mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-12-04 21:58:18 +00:00
retrieve i2c adapter name from sysfs
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2060 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
27e9877012
commit
86a6cdbb06
2 files changed
+54
-19
No files matched your search
@@ -304,11 +304,8 @@ const sensors_chip_name *sensors_get_detected_chips (int *nr)
|
||||
|
||||
const char *sensors_get_adapter_name(int bus_nr)
|
||||
{
|
||||
extern int foundsysfs;
|
||||
int i;
|
||||
|
||||
if(foundsysfs)
|
||||
return "Unavailable from sysfs";
|
||||
if (bus_nr == SENSORS_CHIP_NAME_BUS_ISA)
|
||||
return "ISA adapter";
|
||||
if (bus_nr == SENSORS_CHIP_NAME_BUS_DUMMY)
|
||||
@@ -321,11 +318,8 @@ const char *sensors_get_adapter_name(int bus_nr)
|
||||
|
||||
const char *sensors_get_algorithm_name(int bus_nr)
|
||||
{
|
||||
extern int foundsysfs;
|
||||
int i;
|
||||
|
||||
if(foundsysfs)
|
||||
return "Unavailable from sysfs";
|
||||
if (bus_nr == SENSORS_CHIP_NAME_BUS_ISA)
|
||||
return "ISA algorithm";
|
||||
if (bus_nr == SENSORS_CHIP_NAME_BUS_DUMMY)
|
||||
|
||||
Reference in new issue
Block a user