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

+2 -12
View File
@@ -317,20 +317,10 @@ const char *sensors_get_adapter_name(int bus_nr)
return NULL;
}
/* This function is deprecated and will be dropped soon. */
const char *sensors_get_algorithm_name(int bus_nr)
{
int i;
if (bus_nr == SENSORS_CHIP_NAME_BUS_ISA)
return "ISA algorithm";
if (bus_nr == SENSORS_CHIP_NAME_BUS_PCI)
return "PCI algorithm";
if (bus_nr == SENSORS_CHIP_NAME_BUS_DUMMY)
return "Dummy algorithm";
for (i = 0; i < sensors_proc_bus_count; i++)
if (sensors_proc_bus[i].number == bus_nr)
return sensors_proc_bus[i].algorithm;
return NULL;
return "No longer available";
}
/* nr1-1 is the last main feature found; nr2-1 is the last subfeature found */