libsensors: Drop support for algorithm names.

I2C algorithms no longer have names in Linux 2.6, and anyway they are
implementation details user-space doesn't care about. No third party
application is known to have ever used this particular feature of
libsensors. "sensord" and "sensors" no longer do.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4208 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2006-10-13 19:55:41 +00:00
1 parent 054b265795
commit 6270cf381a
10 files changed
+44 -40

No files matched your search

+1 -7
View File
@@ -207,15 +207,9 @@ int sensors_read_sysfs_bus(void)
if (!strncmp(entry.adapter, "ISA ", 4)) {
entry.number = SENSORS_CHIP_NAME_BUS_ISA;
entry.algorithm = strdup("ISA bus algorithm");
} else if (sscanf(clsdev->name, "i2c-%d", &entry.number) != 1) {
entry.number = SENSORS_CHIP_NAME_BUS_DUMMY;
entry.algorithm = strdup("Dummy bus algorithm");
} else
entry.algorithm = strdup("Unavailable from sysfs");
if (!entry.algorithm)
sensors_fatal_error(__FUNCTION__, "out of memory");
}
sensors_add_proc_bus(&entry);
}