Changeset 3090

Show
Ignore:
Timestamp:
09/18/05 20:28:51 (8 years ago)
Author:
mmh
Message:

(mmh)
This patch moves the chip and bus lists from lib/proc.c to lib/data.c.
The variables were already declared in lib/data.h. Motivation: when
support for kernel 2.4.x becomes optional, lib/proc.c may not even be
compiled into the library... but these variables are still needed.

Location:
lm-sensors/trunk/lib
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/lib/data.c

    r3076 r3090  
    3636int sensors_config_busses_count = 0; 
    3737int sensors_config_busses_max = 0; 
     38 
     39sensors_proc_chips_entry *sensors_proc_chips = NULL; 
     40int sensors_proc_chips_count = 0; 
     41int sensors_proc_chips_max = 0; 
     42 
     43sensors_bus *sensors_proc_bus = NULL; 
     44int sensors_proc_bus_count = 0; 
     45int sensors_proc_bus_max = 0; 
    3846 
    3947static int sensors_substitute_chip(sensors_chip_name *name,int lineno); 
  • lm-sensors/trunk/lib/proc.c

    r3082 r3090  
    4040 
    4141static char buf[BUF_LEN]; 
    42  
    43 sensors_proc_chips_entry *sensors_proc_chips; 
    44 int sensors_proc_chips_count, sensors_proc_chips_max; 
    45  
    46 sensors_bus *sensors_proc_bus; 
    47 int sensors_proc_bus_count, sensors_proc_bus_max; 
    4842 
    4943static int sensors_get_chip_id(sensors_chip_name name);