mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-20 19:41:47 +00:00
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:
1 parent
054b265795
commit
6270cf381a
10 files changed
+44
-40
No files matched your search
+1
-3
@@ -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++;
|
||||
|
||||
Reference in new issue
Block a user