diff options
author | Jean Delvare <khali@linux-fr.org> | 2007-08-16 10:06:35 +0000 |
---|---|---|
committer | Jean Delvare <khali@linux-fr.org> | 2007-08-16 10:06:35 +0000 |
commit | f430b0991a8c776673707ad4ce3ee8c74eed5880 (patch) | |
tree | 666d2f3145f8f3880baaa57ef11dbdc92ab3afde /lib/sensors.conf.5 | |
parent | edb42b3c1648eac51ed269b1ddcab5436897d526 (diff) | |
download | lm-sensors-git-f430b0991a8c776673707ad4ce3ee8c74eed5880.tar.gz |
Chip types can no longer contain dashes. This makes it possible to
rewrite sensors_parse_chip_name() with a simpler algorithm. The new
code is smaller by about one third, and twice as fast on average
(5 times as fast in the most frequent case "foo-*".)
This closes ticket #2221.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4677 7894878c-1315-0410-8ee3-d5d059ff63e0
Diffstat (limited to 'lib/sensors.conf.5')
-rw-r--r-- | lib/sensors.conf.5 | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/lib/sensors.conf.5 b/lib/sensors.conf.5 index 776b4067..f1a14a0a 100644 --- a/lib/sensors.conf.5 +++ b/lib/sensors.conf.5 @@ -186,9 +186,7 @@ statement is ignored upto the next statement. A chip description is built from a couple of elements, separated by -dashes. To complicate matters, sometimes an element can also contain -dashes. This complicates the parsing algorithm, but is not too confusing -for humans (we hope!). +dashes. The first element is the name of the chip type. Sometimes a single driver implements several chip types, with several names. The driver documentation @@ -216,10 +214,10 @@ the wildcard operator .I * for this element. -There are some folding rules for wildcards to make things easier for humans -to read. Also, you can't specify the address if you wildcard the complete -second element. The following are all valid chip type specification based -on +Note that it wouldn't make any sense to specify the address without the +bus type. For this reason, the address part is plain omitted when the bus +type isn't specified. +The following are all valid chip type specification based on .I lm78\-i2c\-1\-2d or .IR lm78\-isa\-0290 : @@ -250,10 +248,6 @@ lm78\-* *\-isa\-0290 .sp 0 *\-isa\-* -.sp 0 -*\-* -.sp 0 -* .RE .SS COMPUTE STATEMENT |