Show
Ignore:
Timestamp:
10/13/06 21:55:41 (7 years ago)
Author:
khali
Message:

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.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/lib/conf-parse.y

    r2345 r4208  
    135135 
    136136line:     bus_statement EOL 
     137        | busalgo_statement EOL 
    137138        | label_statement EOL 
    138139        | set_statement EOL 
     
    143144; 
    144145 
    145 bus_statement:    BUS i2cbus_name adapter_name algorithm_name 
     146bus_statement:    BUS i2cbus_name adapter_name 
    146147                  { sensors_bus new_el; 
    147148                    new_el.lineno = $1; 
    148149                    new_el.number = $2; 
    149150                    new_el.adapter = $3; 
    150                     new_el.algorithm = $4; 
    151151                    bus_add_el(&new_el); 
    152152                  } 
     153; 
     154 
     155/* for compatibility, deprecated */ 
     156busalgo_statement:        BUS i2cbus_name adapter_name algorithm_name 
     157                          { sensors_bus new_el; 
     158                            new_el.lineno = $1; 
     159                            new_el.number = $2; 
     160                            new_el.adapter = $3; 
     161                            free($4); 
     162                            bus_add_el(&new_el); 
     163                          } 
    153164; 
    154165