mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-09-02 07:15:39 +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
CHANGES
1
CHANGES
@@ -15,6 +15,7 @@ SVN HEAD
|
|||||||
Delete support of non-sensor drivers (ddcmon, eeprom)
|
Delete support of non-sensor drivers (ddcmon, eeprom)
|
||||||
Always build with sysfs support
|
Always build with sysfs support
|
||||||
Delete procfs support (Linux 2.4)
|
Delete procfs support (Linux 2.4)
|
||||||
|
Delete all remnants of algorithm names
|
||||||
Man page sensors.conf.5: Update the chip statement section
|
Man page sensors.conf.5: Update the chip statement section
|
||||||
Programs doc/*: Delete, obsolete
|
Programs doc/*: Delete, obsolete
|
||||||
Programs i2cdump, i2cget, i2cset: Do not force the slave address by default
|
Programs i2cdump, i2cget, i2cset: Do not force the slave address by default
|
||||||
|
7
doc/FAQ
7
doc/FAQ
@@ -94,7 +94,7 @@ lm_sensors
|
|||||||
4.24.2 Sensors-detect says "Can't open /dev/i2c[-/]0"
|
4.24.2 Sensors-detect says "Can't open /dev/i2c[-/]0"
|
||||||
4.24.3 Sensors-detect doesn't find any sensors!
|
4.24.3 Sensors-detect doesn't find any sensors!
|
||||||
4.25 Sensors says `Error: Line xxx: zzzzzzz'
|
4.25 Sensors says `Error: Line xxx: zzzzzzz'
|
||||||
4.26 Sensors only gives the name, adapter, and algorithm for my chip
|
4.26 Sensors only gives the name and adapter for my chip
|
||||||
4.27 Sensors says `ERROR: Can't get xxxxx data!'
|
4.27 Sensors says `ERROR: Can't get xxxxx data!'
|
||||||
4.28 Sensors doesn't find any sensors, just eeproms.
|
4.28 Sensors doesn't find any sensors, just eeproms.
|
||||||
4.29 Inserting modules hangs my board
|
4.29 Inserting modules hangs my board
|
||||||
@@ -1103,15 +1103,14 @@ These are errors from the libsensors library in reading the
|
|||||||
it. If you have a parse error, perhaps you have to put the feature name
|
it. If you have a parse error, perhaps you have to put the feature name
|
||||||
in double quotes.
|
in double quotes.
|
||||||
|
|
||||||
4.26 Sensors only gives the name, adapter, and algorithm for my chip
|
4.26 Sensors only gives the name and adapter for my chip
|
||||||
====================================================================
|
========================================================
|
||||||
|
|
||||||
If `sensors' only says this, for example, and doesn't provide any
|
If `sensors' only says this, for example, and doesn't provide any
|
||||||
actual data at all:
|
actual data at all:
|
||||||
|
|
||||||
it87-isa-0290
|
it87-isa-0290
|
||||||
Adapter: ISA adapter
|
Adapter: ISA adapter
|
||||||
Algorithm: ISA algorithm
|
|
||||||
|
|
||||||
Your chip is not currently supported by `sensors' and so all it does
|
Your chip is not currently supported by `sensors' and so all it does
|
||||||
is print out that information. Get the latest release and be sure you
|
is print out that information. Get the latest release and be sure you
|
||||||
|
@@ -152,7 +152,7 @@ Jean Delvare<br>
|
|||||||
<li><a href="#Section-4_002e24">4.24.3 Sensors-detect doesn't find any sensors!</a>
|
<li><a href="#Section-4_002e24">4.24.3 Sensors-detect doesn't find any sensors!</a>
|
||||||
</li></ul>
|
</li></ul>
|
||||||
<li><a href="#Section-4_002e25">4.25 Sensors says `<samp><span class="samp">Error: Line xxx: zzzzzzz</span></samp>'</a>
|
<li><a href="#Section-4_002e25">4.25 Sensors says `<samp><span class="samp">Error: Line xxx: zzzzzzz</span></samp>'</a>
|
||||||
<li><a href="#Section-4_002e26">4.26 Sensors only gives the name, adapter, and algorithm for my chip</a>
|
<li><a href="#Section-4_002e26">4.26 Sensors only gives the name and adapter for my chip</a>
|
||||||
<li><a href="#Section-4_002e27">4.27 Sensors says `<samp><span class="samp">ERROR: Can't get xxxxx data!</span></samp>'</a>
|
<li><a href="#Section-4_002e27">4.27 Sensors says `<samp><span class="samp">ERROR: Can't get xxxxx data!</span></samp>'</a>
|
||||||
<li><a href="#Section-4_002e28">4.28 Sensors doesn't find any sensors, just eeproms.</a>
|
<li><a href="#Section-4_002e28">4.28 Sensors doesn't find any sensors, just eeproms.</a>
|
||||||
<li><a href="#Section-4_002e29">4.29 Inserting modules hangs my board</a>
|
<li><a href="#Section-4_002e29">4.29 Inserting modules hangs my board</a>
|
||||||
@@ -897,7 +897,7 @@ Up: <a rel="up" accesskey="u" href="#Top">Top</a>
|
|||||||
<li><a href="#Section-4_002e23">Section 4.23</a>: What is at I2C address XXX?
|
<li><a href="#Section-4_002e23">Section 4.23</a>: What is at I2C address XXX?
|
||||||
<li><a href="#Section-4_002e24">Section 4.24</a>: Sensors-detect doesn't work at all
|
<li><a href="#Section-4_002e24">Section 4.24</a>: Sensors-detect doesn't work at all
|
||||||
<li><a href="#Section-4_002e25">Section 4.25</a>: Sensors says `<samp><span class="samp">Error: Line xxx: zzzzzzz</span></samp>'
|
<li><a href="#Section-4_002e25">Section 4.25</a>: Sensors says `<samp><span class="samp">Error: Line xxx: zzzzzzz</span></samp>'
|
||||||
<li><a href="#Section-4_002e26">Section 4.26</a>: Sensors only gives the name, adapter, and algorithm!
|
<li><a href="#Section-4_002e26">Section 4.26</a>: Sensors only gives the name and adapter!
|
||||||
<li><a href="#Section-4_002e27">Section 4.27</a>: Sensors says `<samp><span class="samp">ERROR: Can't get xxxxx data!</span></samp>'
|
<li><a href="#Section-4_002e27">Section 4.27</a>: Sensors says `<samp><span class="samp">ERROR: Can't get xxxxx data!</span></samp>'
|
||||||
<li><a href="#Section-4_002e28">Section 4.28</a>: Sensors doesn't find any sensors, just eeproms.
|
<li><a href="#Section-4_002e28">Section 4.28</a>: Sensors doesn't find any sensors, just eeproms.
|
||||||
<li><a href="#Section-4_002e29">Section 4.29</a>: Inserting modules hangs my board
|
<li><a href="#Section-4_002e29">Section 4.29</a>: Inserting modules hangs my board
|
||||||
@@ -1679,14 +1679,13 @@ Up: <a rel="up" accesskey="u" href="#Problems">Problems</a>
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h3 class="section">4.26 Sensors only gives the name, adapter, and algorithm for my chip</h3>
|
<h3 class="section">4.26 Sensors only gives the name and adapter for my chip</h3>
|
||||||
|
|
||||||
<p>If <samp><span class="command">sensors</span></samp> only says this, for example, and doesn't
|
<p>If <samp><span class="command">sensors</span></samp> only says this, for example, and doesn't
|
||||||
provide any actual data at all:
|
provide any actual data at all:
|
||||||
|
|
||||||
<pre class="example"> it87-isa-0290
|
<pre class="example"> it87-isa-0290
|
||||||
Adapter: ISA adapter
|
Adapter: ISA adapter
|
||||||
Algorithm: ISA algorithm
|
|
||||||
</pre>
|
</pre>
|
||||||
<p>Your chip is not currently supported by <samp><span class="command">sensors</span></samp> and so all it
|
<p>Your chip is not currently supported by <samp><span class="command">sensors</span></samp> and so all it
|
||||||
does is print out that information. Get the latest release
|
does is print out that information. Get the latest release
|
||||||
|
@@ -561,7 +561,7 @@ to work.
|
|||||||
* Section 4.23:: What is at I2C address XXX?
|
* Section 4.23:: What is at I2C address XXX?
|
||||||
* Section 4.24:: Sensors-detect doesn't work at all
|
* Section 4.24:: Sensors-detect doesn't work at all
|
||||||
* Section 4.25:: Sensors says @samp{Error: Line xxx: zzzzzzz}
|
* Section 4.25:: Sensors says @samp{Error: Line xxx: zzzzzzz}
|
||||||
* Section 4.26:: Sensors only gives the name, adapter, and algorithm!
|
* Section 4.26:: Sensors only gives the name and adapter!
|
||||||
* Section 4.27:: Sensors says @samp{ERROR: Can't get xxxxx data!}
|
* Section 4.27:: Sensors says @samp{ERROR: Can't get xxxxx data!}
|
||||||
* Section 4.28:: Sensors doesn't find any sensors, just eeproms.
|
* Section 4.28:: Sensors doesn't find any sensors, just eeproms.
|
||||||
* Section 4.29:: Inserting modules hangs my board
|
* Section 4.29:: Inserting modules hangs my board
|
||||||
@@ -1142,7 +1142,7 @@ to put the feature name in double quotes.
|
|||||||
|
|
||||||
|
|
||||||
@node Section 4.26, Section 4.27, Section 4.25, Problems
|
@node Section 4.26, Section 4.27, Section 4.25, Problems
|
||||||
@section Sensors only gives the name, adapter, and algorithm for my chip
|
@section Sensors only gives the name and adapter for my chip
|
||||||
|
|
||||||
If @command{sensors} only says this, for example, and doesn't
|
If @command{sensors} only says this, for example, and doesn't
|
||||||
provide any actual data at all:
|
provide any actual data at all:
|
||||||
@@ -1150,7 +1150,6 @@ provide any actual data at all:
|
|||||||
@example
|
@example
|
||||||
it87-isa-0290
|
it87-isa-0290
|
||||||
Adapter: ISA adapter
|
Adapter: ISA adapter
|
||||||
Algorithm: ISA algorithm
|
|
||||||
@end example
|
@end example
|
||||||
|
|
||||||
Your chip is not currently supported by @command{sensors} and so all it
|
Your chip is not currently supported by @command{sensors} and so all it
|
||||||
|
@@ -325,12 +325,6 @@ const char *sensors_get_adapter_name(int bus_nr)
|
|||||||
return NULL;
|
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 */
|
/* 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,
|
const sensors_feature_data *sensors_get_all_features(sensors_chip_name name,
|
||||||
int *nr1, int *nr2)
|
int *nr1, int *nr2)
|
||||||
|
@@ -120,7 +120,6 @@ static sensors_chip *current_chip = NULL;
|
|||||||
%type <expr> expression
|
%type <expr> expression
|
||||||
%type <bus> i2cbus_name
|
%type <bus> i2cbus_name
|
||||||
%type <name> adapter_name
|
%type <name> adapter_name
|
||||||
%type <name> algorithm_name
|
|
||||||
%type <name> function_name
|
%type <name> function_name
|
||||||
%type <name> string
|
%type <name> string
|
||||||
%type <chip> chip_name
|
%type <chip> chip_name
|
||||||
@@ -134,7 +133,6 @@ input: /* empty */
|
|||||||
;
|
;
|
||||||
|
|
||||||
line: bus_statement EOL
|
line: bus_statement EOL
|
||||||
| busalgo_statement EOL
|
|
||||||
| label_statement EOL
|
| label_statement EOL
|
||||||
| set_statement EOL
|
| set_statement EOL
|
||||||
| chip_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
|
label_statement: LABEL function_name string
|
||||||
{ sensors_label new_el;
|
{ sensors_label new_el;
|
||||||
check_current_chip();
|
check_current_chip();
|
||||||
@@ -315,11 +302,6 @@ adapter_name: NAME
|
|||||||
$$ = $1; }
|
$$ = $1; }
|
||||||
;
|
;
|
||||||
|
|
||||||
algorithm_name: NAME
|
|
||||||
{ sensors_strip_of_spaces($1);
|
|
||||||
$$ = $1; }
|
|
||||||
;
|
|
||||||
|
|
||||||
function_name: NAME
|
function_name: NAME
|
||||||
{ $$ = $1; }
|
{ $$ = $1; }
|
||||||
;
|
;
|
||||||
|
@@ -238,9 +238,7 @@ int sensors_substitute_chip(sensors_chip_name *name,int lineno)
|
|||||||
return -SENSORS_ERR_BUS_NAME;
|
return -SENSORS_ERR_BUS_NAME;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* We used to compare both the adapter and the algorithm names for
|
/* Compare the adapter names */
|
||||||
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. */
|
|
||||||
for (j = 0; j < sensors_proc_bus_count; j++) {
|
for (j = 0; j < sensors_proc_bus_count; j++) {
|
||||||
if (!strcmp(sensors_config_busses[i].adapter,
|
if (!strcmp(sensors_config_busses[i].adapter,
|
||||||
sensors_proc_bus[j].adapter)) {
|
sensors_proc_bus[j].adapter)) {
|
||||||
|
@@ -24,7 +24,7 @@
|
|||||||
.\"
|
.\"
|
||||||
.\" References consulted:
|
.\" References consulted:
|
||||||
.\" libsensors source code
|
.\" libsensors source code
|
||||||
.TH libsensors 3 "October 2006" "" "Linux Programmer's Manual"
|
.TH libsensors 3 "June 2007" "" "Linux Programmer's Manual"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
libsensors \- publicly accessible functions provided by the sensors library
|
libsensors \- publicly accessible functions provided by the sensors library
|
||||||
.SH SYNOPSIS
|
.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
|
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.
|
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,
|
\fBint sensors_get_label(sensors_chip_name name, int feature,
|
||||||
char **result);\fP
|
char **result);\fP
|
||||||
.br
|
.br
|
||||||
|
@@ -23,7 +23,7 @@
|
|||||||
.\"
|
.\"
|
||||||
.\" References consulted:
|
.\" References consulted:
|
||||||
.\" sensors.conf.eg by Frodo Looijaard
|
.\" 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
|
.SH NAME
|
||||||
sensors.conf \- libsensors configuration file
|
sensors.conf \- libsensors configuration file
|
||||||
|
|
||||||
@@ -149,9 +149,6 @@ or
|
|||||||
It should always be quoted as well as it will most certainly contain
|
It should always be quoted as well as it will most certainly contain
|
||||||
spaces or dashes.
|
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
|
The
|
||||||
.I bus
|
.I bus
|
||||||
statements may be scattered randomly throughout the configuration file;
|
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 */
|
it returns NULL */
|
||||||
extern const char *sensors_get_adapter_name(int bus_nr);
|
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
|
/* Look up the label which belongs to this chip. Note that chip should not
|
||||||
contain wildcard values! *result is newly allocated (free it yourself).
|
contain wildcard values! *result is newly allocated (free it yourself).
|
||||||
This function will return 0 on success, and <0 on failure. This
|
This function will return 0 on success, and <0 on failure. This
|
||||||
|
@@ -161,8 +161,6 @@ int main (int argc, char *argv[])
|
|||||||
{ "no-unknown", no_argument, NULL, 'U' },
|
{ "no-unknown", no_argument, NULL, 'U' },
|
||||||
{ "config-file", required_argument, NULL, 'c' },
|
{ "config-file", required_argument, NULL, 'c' },
|
||||||
{ "unknown", no_argument, NULL, 'u' },
|
{ "unknown", no_argument, NULL, 'u' },
|
||||||
/* next option accepted for compatibility, but otherwise ignored */
|
|
||||||
{ "algorithm", no_argument, NULL, 'a' },
|
|
||||||
{ "generic", no_argument, NULL, 'g'},
|
{ "generic", no_argument, NULL, 'g'},
|
||||||
{ 0,0,0,0 }
|
{ 0,0,0,0 }
|
||||||
};
|
};
|
||||||
@@ -175,7 +173,7 @@ int main (int argc, char *argv[])
|
|||||||
hide_unknown = 0;
|
hide_unknown = 0;
|
||||||
do_generic = 0;
|
do_generic = 0;
|
||||||
while (1) {
|
while (1) {
|
||||||
c = getopt_long(argc,argv,"hsvfaAUc:ug",long_opts,NULL);
|
c = getopt_long(argc, argv, "hsvfAUc:ug", long_opts, NULL);
|
||||||
if (c == EOF)
|
if (c == EOF)
|
||||||
break;
|
break;
|
||||||
switch(c) {
|
switch(c) {
|
||||||
@@ -207,9 +205,6 @@ int main (int argc, char *argv[])
|
|||||||
case 'u':
|
case 'u':
|
||||||
do_unknown = 1;
|
do_unknown = 1;
|
||||||
break;
|
break;
|
||||||
case 'a':
|
|
||||||
/* Ignore for compatibility */
|
|
||||||
break;
|
|
||||||
case 'g':
|
case 'g':
|
||||||
do_generic = 1;
|
do_generic = 1;
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user