Show
Ignore:
Timestamp:
08/16/07 12:06:35 (6 years ago)
Author:
khali
Message:

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.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/branches/lm-sensors-3.0.0/lib/sensors.conf.5

    r4465 r4677  
    187187 
    188188A chip description is built from a couple of elements, separated by 
    189 dashes. To complicate matters, sometimes an element can also contain 
    190 dashes. This complicates the parsing algorithm, but is not too confusing 
    191 for humans (we hope!). 
     189dashes. 
    192190 
    193191The first element is the name of the chip type. Sometimes a single driver 
     
    217215for this element.  
    218216 
    219 There are some folding rules for wildcards to make things easier for humans 
    220 to read. Also, you can't specify the address if you wildcard the complete 
    221 second element. The following are all valid chip type specification based 
    222 on  
     217Note that it wouldn't make any sense to specify the address without the 
     218bus type. For this reason, the address part is plain omitted when the bus 
     219type isn't specified. 
     220The following are all valid chip type specification based on 
    223221.I lm78\-i2c\-1\-2d 
    224222or 
     
    251249.sp 0 
    252250*\-isa\-* 
    253 .sp 0 
    254 *\-* 
    255 .sp 0 
    256 * 
    257251.RE 
    258252