mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-24 20:21:43 +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
+13
-2
@@ -134,6 +134,7 @@ input: /* empty */
|
||||
;
|
||||
|
||||
line: bus_statement EOL
|
||||
| busalgo_statement EOL
|
||||
| label_statement EOL
|
||||
| set_statement EOL
|
||||
| chip_statement EOL
|
||||
@@ -142,16 +143,26 @@ line: bus_statement EOL
|
||||
| error EOL
|
||||
;
|
||||
|
||||
bus_statement: BUS i2cbus_name adapter_name algorithm_name
|
||||
bus_statement: BUS i2cbus_name adapter_name
|
||||
{ sensors_bus new_el;
|
||||
new_el.lineno = $1;
|
||||
new_el.number = $2;
|
||||
new_el.adapter = $3;
|
||||
new_el.algorithm = $4;
|
||||
bus_add_el(&new_el);
|
||||
}
|
||||
;
|
||||
|
||||
/* for compatibility, deprecated */
|
||||
busalgo_statement: BUS i2cbus_name adapter_name algorithm_name
|
||||
{ sensors_bus new_el;
|
||||
new_el.lineno = $1;
|
||||
new_el.number = $2;
|
||||
new_el.adapter = $3;
|
||||
free($4);
|
||||
bus_add_el(&new_el);
|
||||
}
|
||||
;
|
||||
|
||||
label_statement: LABEL function_name string
|
||||
{ sensors_label new_el;
|
||||
check_current_chip();
|
||||
|
||||
Reference in new issue
Block a user