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 -3
View File
@@ -94,8 +94,7 @@ int sensors_read_proc_bus(void)
line[strlen(line)-1] = '\0';
if (! (border = rindex(line,'\t')))
goto ERROR;
if (! (entry.algorithm = strdup(border+1)))
goto FAT_ERROR;
/* Skip algorithm name */
*border='\0';
if (! (border = rindex(line,'\t')))
goto ERROR;
@@ -109,7 +108,6 @@ int sensors_read_proc_bus(void)
goto ERROR;
if (sensors_parse_i2cbus_name(line,&entry.number))
goto ERROR;
sensors_strip_of_spaces(entry.algorithm);
sensors_strip_of_spaces(entry.adapter);
sensors_add_proc_bus(&entry);
lineno++;