mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-12-04 21:58:18 +00:00
Delete all remnants of algorithm names.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4465 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
f00aef9271
commit
24f6b62c3f
11 files changed
+13
-58
No files matched your search
@@ -325,12 +325,6 @@ 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)
|
||||
{
|
||||
return "No longer available";
|
||||
}
|
||||
|
||||
/* nr1-1 is the last main feature found; nr2-1 is the last subfeature found */
|
||||
const sensors_feature_data *sensors_get_all_features(sensors_chip_name name,
|
||||
int *nr1, int *nr2)
|
||||
|
||||
@@ -120,7 +120,6 @@ static sensors_chip *current_chip = NULL;
|
||||
%type <expr> expression
|
||||
%type <bus> i2cbus_name
|
||||
%type <name> adapter_name
|
||||
%type <name> algorithm_name
|
||||
%type <name> function_name
|
||||
%type <name> string
|
||||
%type <chip> chip_name
|
||||
@@ -134,7 +133,6 @@ input: /* empty */
|
||||
;
|
||||
|
||||
line: bus_statement EOL
|
||||
| busalgo_statement EOL
|
||||
| label_statement EOL
|
||||
| set_statement EOL
|
||||
| chip_statement EOL
|
||||
@@ -152,17 +150,6 @@ bus_statement: BUS i2cbus_name adapter_name
|
||||
}
|
||||
;
|
||||
|
||||
/* 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();
|
||||
@@ -315,11 +302,6 @@ adapter_name: NAME
|
||||
$$ = $1; }
|
||||
;
|
||||
|
||||
algorithm_name: NAME
|
||||
{ sensors_strip_of_spaces($1);
|
||||
$$ = $1; }
|
||||
;
|
||||
|
||||
function_name: NAME
|
||||
{ $$ = $1; }
|
||||
;
|
||||
|
||||
+1
-3
@@ -238,9 +238,7 @@ int sensors_substitute_chip(sensors_chip_name *name,int lineno)
|
||||
return -SENSORS_ERR_BUS_NAME;
|
||||
}
|
||||
|
||||
/* We used to compare both the adapter and the algorithm names for
|
||||
bus matching, but Linux 2.6 has no more names for algorithms, and
|
||||
it was redundant anyway. So we now only rely on the adapter name. */
|
||||
/* Compare the adapter names */
|
||||
for (j = 0; j < sensors_proc_bus_count; j++) {
|
||||
if (!strcmp(sensors_config_busses[i].adapter,
|
||||
sensors_proc_bus[j].adapter)) {
|
||||
|
||||
+1
-7
@@ -24,7 +24,7 @@
|
||||
.\"
|
||||
.\" References consulted:
|
||||
.\" libsensors source code
|
||||
.TH libsensors 3 "October 2006" "" "Linux Programmer's Manual"
|
||||
.TH libsensors 3 "June 2007" "" "Linux Programmer's Manual"
|
||||
.SH NAME
|
||||
libsensors \- publicly accessible functions provided by the sensors library
|
||||
.SH SYNOPSIS
|
||||
@@ -81,12 +81,6 @@ Check whether the chip name is an 'absolute' name, which can only match one chip
|
||||
This function returns the adapter name of a bus number, as used within the
|
||||
sensors_chip_name structure. If it could not be found, it returns NULL.
|
||||
|
||||
.B const char *sensors_get_algorithm_name(int bus_nr);
|
||||
.br
|
||||
This function used to return the algorithm name of a bus number.
|
||||
It is now deprecated and returns an arbitrary string. It will be dropped
|
||||
in a later version of the library so you should stop using it.
|
||||
|
||||
\fBint sensors_get_label(sensors_chip_name name, int feature,
|
||||
char **result);\fP
|
||||
.br
|
||||
|
||||
+1
-4
@@ -23,7 +23,7 @@
|
||||
.\"
|
||||
.\" References consulted:
|
||||
.\" sensors.conf.eg by Frodo Looijaard
|
||||
.TH sensors.conf 5 "April 2007" "" "Linux Programmer's Manual"
|
||||
.TH sensors.conf 5 "June 2007" "" "Linux Programmer's Manual"
|
||||
.SH NAME
|
||||
sensors.conf \- libsensors configuration file
|
||||
|
||||
@@ -149,9 +149,6 @@ or
|
||||
It should always be quoted as well as it will most certainly contain
|
||||
spaces or dashes.
|
||||
|
||||
There used to be a third argument, the algorithm name. For compatibility
|
||||
reasons, the parser still accepts this third argument, but ignores it.
|
||||
|
||||
The
|
||||
.I bus
|
||||
statements may be scattered randomly throughout the configuration file;
|
||||
|
||||
@@ -74,9 +74,6 @@ extern int sensors_chip_name_has_wildcards(sensors_chip_name chip);
|
||||
it returns NULL */
|
||||
extern const char *sensors_get_adapter_name(int bus_nr);
|
||||
|
||||
/* This function is deprecated and will be dropped soon. */
|
||||
extern const char *sensors_get_algorithm_name(int bus_nr);
|
||||
|
||||
/* Look up the label which belongs to this chip. Note that chip should not
|
||||
contain wildcard values! *result is newly allocated (free it yourself).
|
||||
This function will return 0 on success, and <0 on failure. This
|
||||
|
||||
Reference in new issue
Block a user