Changeset 4465

Show
Ignore:
Timestamp:
06/25/07 16:21:01 (7 years ago)
Author:
khali
Message:

Delete all remnants of algorithm names.

Location:
lm-sensors/branches/lm-sensors-3.0.0
Files:
11 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/branches/lm-sensors-3.0.0/CHANGES

    r4462 r4465  
    1616           Always build with sysfs support 
    1717           Delete procfs support (Linux 2.4) 
     18           Delete all remnants of algorithm names 
    1819  Man page sensors.conf.5: Update the chip statement section 
    1920  Programs doc/*: Delete, obsolete 
  • lm-sensors/branches/lm-sensors-3.0.0/doc/FAQ

    r4197 r4465  
    9595    4.24.3 Sensors-detect doesn't find any sensors! 
    9696  4.25 Sensors says `Error: Line xxx: zzzzzzz' 
    97   4.26 Sensors only gives the name, adapter, and algorithm for my chip 
     97  4.26 Sensors only gives the name and adapter for my chip 
    9898  4.27 Sensors says `ERROR: Can't get xxxxx data!' 
    9999  4.28 Sensors doesn't find any sensors, just eeproms. 
     
    11041104in double quotes. 
    11051105 
    1106 4.26 Sensors only gives the name, adapter, and algorithm for my chip 
    1107 ==================================================================== 
     11064.26 Sensors only gives the name and adapter for my chip 
     1107======================================================== 
    11081108 
    11091109If `sensors' only says this, for example, and doesn't provide any 
     
    11121112     it87-isa-0290 
    11131113     Adapter: ISA adapter 
    1114      Algorithm: ISA algorithm 
    11151114 
    11161115   Your chip is not currently supported by `sensors' and so all it does 
  • lm-sensors/branches/lm-sensors-3.0.0/doc/lm_sensors-FAQ.html

    r4197 r4465  
    153153</li></ul> 
    154154<li><a href="#Section-4_002e25">4.25 Sensors says `<samp><span class="samp">Error: Line xxx: zzzzzzz</span></samp>'</a> 
    155 <li><a href="#Section-4_002e26">4.26 Sensors only gives the name, adapter, and algorithm for my chip</a> 
     155<li><a href="#Section-4_002e26">4.26 Sensors only gives the name and adapter for my chip</a> 
    156156<li><a href="#Section-4_002e27">4.27 Sensors says `<samp><span class="samp">ERROR: Can't get xxxxx data!</span></samp>'</a> 
    157157<li><a href="#Section-4_002e28">4.28 Sensors doesn't find any sensors, just eeproms.</a> 
     
    898898<li><a href="#Section-4_002e24">Section 4.24</a>:         Sensors-detect doesn't work at all 
    899899<li><a href="#Section-4_002e25">Section 4.25</a>:         Sensors says `<samp><span class="samp">Error: Line xxx: zzzzzzz</span></samp>' 
    900 <li><a href="#Section-4_002e26">Section 4.26</a>:         Sensors only gives the name, adapter, and algorithm!  
     900<li><a href="#Section-4_002e26">Section 4.26</a>:         Sensors only gives the name and adapter!  
    901901<li><a href="#Section-4_002e27">Section 4.27</a>:         Sensors says `<samp><span class="samp">ERROR: Can't get xxxxx data!</span></samp>' 
    902902<li><a href="#Section-4_002e28">Section 4.28</a>:         Sensors doesn't find any sensors, just eeproms.  
     
    16801680</div> 
    16811681 
    1682 <h3 class="section">4.26 Sensors only gives the name, adapter, and algorithm for my chip</h3> 
     1682<h3 class="section">4.26 Sensors only gives the name and adapter for my chip</h3> 
    16831683 
    16841684<p>If <samp><span class="command">sensors</span></samp> only says this, for example, and doesn't 
     
    16871687<pre class="example">     it87-isa-0290 
    16881688     Adapter: ISA adapter 
    1689      Algorithm: ISA algorithm 
    16901689</pre> 
    16911690   <p>Your chip is not currently supported by <samp><span class="command">sensors</span></samp> and so all it 
  • lm-sensors/branches/lm-sensors-3.0.0/doc/lm_sensors-FAQ.texi

    r4197 r4465  
    562562* Section 4.24::        Sensors-detect doesn't work at all 
    563563* Section 4.25::        Sensors says @samp{Error: Line xxx: zzzzzzz} 
    564 * Section 4.26::        Sensors only gives the name, adapter, and algorithm! 
     564* Section 4.26::        Sensors only gives the name and adapter! 
    565565* Section 4.27::        Sensors says @samp{ERROR: Can't get xxxxx data!} 
    566566* Section 4.28::        Sensors doesn't find any sensors, just eeproms. 
     
    11431143 
    11441144@node Section 4.26, Section 4.27, Section 4.25, Problems 
    1145 @section Sensors only gives the name, adapter, and algorithm for my chip 
     1145@section Sensors only gives the name and adapter for my chip 
    11461146 
    11471147If @command{sensors} only says this, for example, and doesn't 
     
    11511151it87-isa-0290 
    11521152Adapter: ISA adapter 
    1153 Algorithm: ISA algorithm 
    11541153@end example 
    11551154 
  • lm-sensors/branches/lm-sensors-3.0.0/lib/access.c

    r4427 r4465  
    326326} 
    327327 
    328 /* This function is deprecated and will be dropped soon. */ 
    329 const char *sensors_get_algorithm_name(int bus_nr) 
    330 { 
    331         return "No longer available"; 
    332 } 
    333  
    334328/* nr1-1 is the last main feature found; nr2-1 is the last subfeature found */ 
    335329const sensors_feature_data *sensors_get_all_features(sensors_chip_name name, 
  • lm-sensors/branches/lm-sensors-3.0.0/lib/conf-parse.y

    r4208 r4465  
    121121%type <bus> i2cbus_name 
    122122%type <name> adapter_name 
    123 %type <name> algorithm_name 
    124123%type <name> function_name 
    125124%type <name> string 
     
    135134 
    136135line:     bus_statement EOL 
    137         | busalgo_statement EOL 
    138136        | label_statement EOL 
    139137        | set_statement EOL 
     
    151149                    bus_add_el(&new_el); 
    152150                  } 
    153 ; 
    154  
    155 /* for compatibility, deprecated */ 
    156 busalgo_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                           } 
    164151; 
    165152 
     
    316303; 
    317304 
    318 algorithm_name:   NAME 
    319                   { sensors_strip_of_spaces($1); 
    320                     $$ = $1; } 
    321 ; 
    322  
    323305function_name:    NAME 
    324306                  { $$ = $1; } 
  • lm-sensors/branches/lm-sensors-3.0.0/lib/data.c

    r4098 r4465  
    239239  } 
    240240 
    241   /* We used to compare both the adapter and the algorithm names for 
    242      bus matching, but Linux 2.6 has no more names for algorithms, and 
    243      it was redundant anyway. So we now only rely on the adapter name. */ 
     241  /* Compare the adapter names */ 
    244242  for (j = 0; j < sensors_proc_bus_count; j++) { 
    245243    if (!strcmp(sensors_config_busses[i].adapter, 
  • lm-sensors/branches/lm-sensors-3.0.0/lib/libsensors.3

    r4208 r4465  
    2525.\" References consulted: 
    2626.\"     libsensors source code 
    27 .TH libsensors 3  "October 2006" "" "Linux Programmer's Manual" 
     27.TH libsensors 3  "June 2007" "" "Linux Programmer's Manual" 
    2828.SH NAME 
    2929libsensors \- publicly accessible functions provided by the sensors library 
     
    8181This function returns the adapter name of a bus number, as used within the 
    8282sensors_chip_name structure. If it could not be found, it returns NULL. 
    83  
    84 .B const char *sensors_get_algorithm_name(int bus_nr); 
    85 .br 
    86 This function used to return the algorithm name of a bus number. 
    87 It is now deprecated and returns an arbitrary string. It will be dropped 
    88 in a later version of the library so you should stop using it. 
    8983 
    9084\fBint sensors_get_label(sensors_chip_name name, int feature, 
  • lm-sensors/branches/lm-sensors-3.0.0/lib/sensors.conf.5

    r4374 r4465  
    2424.\" References consulted: 
    2525.\"     sensors.conf.eg by Frodo Looijaard 
    26 .TH sensors.conf 5  "April 2007" "" "Linux Programmer's Manual" 
     26.TH sensors.conf 5  "June 2007" "" "Linux Programmer's Manual" 
    2727.SH NAME 
    2828sensors.conf \- libsensors configuration file 
     
    149149It should always be quoted as well as it will most certainly contain 
    150150spaces or dashes. 
    151  
    152 There used to be a third argument, the algorithm name. For compatibility 
    153 reasons, the parser still accepts this third argument, but ignores it. 
    154151 
    155152The 
  • lm-sensors/branches/lm-sensors-3.0.0/lib/sensors.h

    r4428 r4465  
    7474   it returns NULL */ 
    7575extern const char *sensors_get_adapter_name(int bus_nr); 
    76  
    77 /* This function is deprecated and will be dropped soon. */ 
    78 extern const char *sensors_get_algorithm_name(int bus_nr); 
    7976 
    8077/* Look up the label which belongs to this chip. Note that chip should not 
  • lm-sensors/branches/lm-sensors-3.0.0/prog/sensors/main.c

    r4464 r4465  
    162162    { "config-file", required_argument, NULL, 'c' }, 
    163163    { "unknown", no_argument, NULL, 'u' }, 
    164     /* next option accepted for compatibility, but otherwise ignored */ 
    165     { "algorithm", no_argument, NULL, 'a' }, 
    166164    { "generic", no_argument, NULL, 'g'}, 
    167165    { 0,0,0,0 } 
     
    176174  do_generic = 0; 
    177175  while (1) { 
    178     c = getopt_long(argc,argv,"hsvfaAUc:ug",long_opts,NULL); 
     176    c = getopt_long(argc, argv, "hsvfAUc:ug", long_opts, NULL); 
    179177    if (c == EOF) 
    180178      break; 
     
    207205    case 'u': 
    208206      do_unknown = 1; 
    209       break; 
    210     case 'a': 
    211       /* Ignore for compatibility */ 
    212207      break; 
    213208    case 'g':