Changeset 516

Show
Ignore:
Timestamp:
07/24/99 01:43:13 (9 years ago)
Author:
frodo
Message:

(Frodo) Massive commit of all things related to mkpatch. Let's just say

it works great now.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lm-sensors/trunk/TODO

    r512 r516  
    44================ 
    55 
    6 * Add code and supporting files to compile modules into the main kernel 
    7 * Write a mkpatch script, as in the i2c tree 
    86* Check what happens if the ISA bus is selected by a force parameter; 
    97  I think the _detect procedures are called?!? 
  • lm-sensors/trunk/doc/busses/i2c-via

    r413 r516  
    1 Kernel driver `i2c-piix4.o' 
     1Kernel driver `i2c-via.o' 
    22 
    33Status: Complete and well-tested 
  • lm-sensors/trunk/kernel/busses/i2c-ali15x3.c

    r513 r516  
    8787#else 
    8888#define __init  
     89#define __initdata  
    8990#endif 
    9091 
     
    150151 
    151152 
    152 static int __init ali15x3_init(void); 
     153#ifdef MODULE 
     154static 
     155#else 
     156extern 
     157#endif 
     158       int __init i2c_ali15x3_init(void); 
    153159static int __init ali15x3_cleanup(void); 
    154160static int ali15x3_setup(void); 
     
    186192}; 
    187193 
    188 static int __init ali15x3_initialized; 
     194static int __initdata ali15x3_initialized; 
    189195#ifdef MAP_ACPI 
    190196static unsigned short ali15x3_acpia = 0; 
     
    605611} 
    606612 
    607 int __init ali15x3_init(void) 
     613int __init i2c_ali15x3_init(void) 
    608614{ 
    609615  int res; 
     
    667673int init_module(void) 
    668674{ 
    669   return ali15x3_init(); 
     675  return i2c_ali15x3_init(); 
    670676} 
    671677 
  • lm-sensors/trunk/kernel/busses/i2c-hydra.c

    r513 r516  
    4444#else 
    4545#define __init 
     46#define __initdata 
    4647#endif 
    4748 
     
    177178} 
    178179 
    179 int __init init_i2c_hydra(void) 
     180#ifdef MODULE 
     181static 
     182#else 
     183extern 
     184#endif 
     185       int __init i2c_init_i2c_hydra(void) 
    180186{ 
    181187        if (find_hydra() < 0) { 
     
    204210int init_module(void)  
    205211{ 
    206         return init_i2c_hydra(); 
     212        return i2c_init_i2c_hydra(); 
    207213} 
    208214 
  • lm-sensors/trunk/kernel/busses/i2c-isa.c

    r513 r516  
    3434#else 
    3535#define __init 
     36#define __initdata 
    3637#endif 
    3738 
     
    4243static void isa_dec_use (struct i2c_adapter *adapter); 
    4344 
    44 static int __init isa_init(void); 
     45#ifdef MODULE 
     46static 
     47#else 
     48extern 
     49#endif 
     50       int __init i2c_isa_init(void); 
    4551static int __init isa_cleanup(void); 
    4652 
     
    7379 
    7480/* Used in isa_init/cleanup */ 
    75 static int __init isa_initialized; 
     81static int __initdata isa_initialized; 
    7682 
    7783void isa_inc_use (struct i2c_adapter *adapter) 
     
    8995} 
    9096 
    91 int __init isa_init(void) 
     97int __init i2c_isa_init(void) 
    9298{ 
    9399  int res; 
     
    148154int init_module(void) 
    149155{ 
    150   return isa_init(); 
     156  return i2c_isa_init(); 
    151157} 
    152158 
  • lm-sensors/trunk/kernel/busses/i2c-piix4.c

    r513 r516  
    4141#else 
    4242#define __init 
     43#define __initdata 
    4344#endif 
    4445 
     
    9192                            "EXTREMELY DANGEROUS!"); 
    9293 
    93 static int __init piix4_init(void); 
     94#ifdef MODULE 
     95static 
     96#else 
     97extern 
     98#endif 
     99       int __init piix4_init(void); 
    94100static int __init piix4_cleanup(void); 
    95101static int piix4_setup(void); 
     
    127133}; 
    128134 
    129 static int __init piix4_initialized; 
     135static int __initdata piix4_initialized; 
    130136static unsigned short piix4_smba = 0; 
    131137 
     
    441447} 
    442448 
    443 int __init piix4_init(void) 
     449int __init i2c_piix4_init(void) 
    444450{ 
    445451  int res; 
     
    497503int init_module(void) 
    498504{ 
    499   return piix4_init(); 
     505  return i2c_piix4_init(); 
    500506} 
    501507 
  • lm-sensors/trunk/kernel/busses/i2c-via.c

    r513 r516  
    3838#else 
    3939#define __init 
     40#define __initdata 
    4041#endif 
    4142 
     
    211212#endif 
    212213 
    213 static int __init init_i2c_via(void) 
     214#ifdef MODULE 
     215static 
     216#else 
     217extern 
     218#endif 
     219       int __init i2c_init_i2c_via(void) 
    214220{ 
    215221        if (find_via() < 0) { 
     
    247253int init_module(void)  
    248254{ 
    249         return init_i2c_via(); 
     255        return i2c_init_i2c_via(); 
    250256} 
    251257 
  • lm-sensors/trunk/kernel/busses/i2c-via2.c

    r513 r516  
    4141#else 
    4242#define __init 
     43#define __initdata 
    4344#endif 
    4445 
     
    108109                            "EXTREMELY DANGEROUS!"); 
    109110 
    110 static int __init vt596_init(void); 
     111#ifdef MODULE 
     112static 
     113#else 
     114extern 
     115#endif 
     116       int __init i2c_vt596_init(void); 
    111117static int __init vt596_cleanup(void); 
    112118static int vt596_setup(void); 
     
    144150}; 
    145151 
    146 static int __init vt596_initialized; 
     152static int __initdata vt596_initialized; 
    147153static unsigned short vt596_smba = 0; 
    148154 
     
    478484} 
    479485 
    480 int __init vt596_init(void) 
     486int __init i2c_vt596_init(void) 
    481487{ 
    482488  int res; 
     
    535541int init_module(void) 
    536542{ 
    537   return vt596_init(); 
     543  return i2c_vt596_init(); 
    538544} 
    539545 
  • lm-sensors/trunk/kernel/busses/i2c-viapro.c

    r513 r516  
    4141#else 
    4242#define __init 
     43#define __initdata 
    4344#endif 
    4445 
     
    108109                            "EXTREMELY DANGEROUS!"); 
    109110 
    110 static int __init vt596_init(void); 
     111#ifdef MODULE 
     112static 
     113#else 
     114extern 
     115#endif 
     116       int __init i2c_vt596_init(void); 
    111117static int __init vt596_cleanup(void); 
    112118static int vt596_setup(void); 
     
    144150}; 
    145151 
    146 static int __init vt596_initialized; 
     152static int __initdata vt596_initialized; 
    147153static unsigned short vt596_smba = 0; 
    148154 
     
    478484} 
    479485 
    480 int __init vt596_init(void) 
     486int __init i2c_vt596_init(void) 
    481487{ 
    482488  int res; 
     
    535541int init_module(void) 
    536542{ 
    537   return vt596_init(); 
     543  return i2c_vt596_init(); 
    538544} 
    539545 
  • lm-sensors/trunk/kernel/busses/i2c-voodoo3.c

    r513 r516  
    4949#else 
    5050#define __init 
     51#define __initdata 
    5152#endif 
    5253 
     
    5960#endif 
    6061 
    61 static int __init voodoo3_init(void); 
     62#ifdef MODULE 
     63static 
     64#else 
     65extern 
     66#endif 
     67       int __init i2c_voodoo3_init(void); 
    6268static int __init voodoo3_cleanup(void); 
    6369static int voodoo3_setup(void); 
     
    106112}; 
    107113 
    108 static int __init voodoo3_initialized; 
     114static int __initdata voodoo3_initialized; 
    109115static unsigned short voodoo3_smba = 0; 
    110116static unsigned int state=0xcf980020; 
     
    526532} 
    527533 
    528 int __init voodoo3_init(void) 
     534int __init i2c_voodoo3_init(void) 
    529535{ 
    530536  int res; 
     
    584590int init_module(void) 
    585591{ 
    586   return voodoo3_init(); 
     592  return i2c_voodoo3_init(); 
    587593} 
    588594 
  • lm-sensors/trunk/kernel/chips/adm1021.c

    r513 r516  
    3232#else 
    3333#define __init 
     34#define __initdata 
    3435#endif 
    3536 
     
    108109#endif /* MODULE */ 
    109110 
    110 static int __init adm1021_init(void); 
     111#ifdef MODULE 
     112static 
     113#else 
     114extern 
     115#endif 
     116       int __init sensors_adm1021_init(void); 
    111117static int __init adm1021_cleanup(void); 
    112118static int adm1021_attach_adapter(struct i2c_adapter *adapter); 
     
    172178 
    173179/* Used by init/cleanup */ 
    174 static int __init adm1021_initialized = 0; 
     180static int __initdata adm1021_initialized = 0; 
    175181 
    176182/* I choose here for semi-static allocation. Complete dynamic 
     
    496502} 
    497503 
    498 int __init adm1021_init(void) 
     504int __init sensors_adm1021_init(void) 
    499505{ 
    500506  int res; 
     
    535541int init_module(void) 
    536542{ 
    537   return adm1021_init(); 
     543  return sensors_adm1021_init(); 
    538544} 
    539545 
  • lm-sensors/trunk/kernel/chips/adm9240.c

    r513 r516  
    6464#else 
    6565#define __init 
     66#define __initdata 
    6667#endif 
    6768 
     
    239240 
    240241 
    241 static int __init adm9240_init(void); 
     242#ifdef MODULE 
     243static 
     244#else 
     245extern 
     246#endif 
     247       int __init sensors_adm9240_init(void); 
    242248static int __init adm9240_cleanup(void); 
    243249 
     
    289295 
    290296/* Used by adm9240_init/cleanup */ 
    291 static int __init adm9240_initialized = 0; 
     297static int __initdata adm9240_initialized = 0; 
    292298 
    293299/* The /proc/sys entries */ 
     
    754760} 
    755761 
    756 int __init adm9240_init(void) 
     762int __init sensors_adm9240_init(void) 
    757763{ 
    758764  int res; 
     
    793799int init_module(void) 
    794800{ 
    795   return adm9240_init(); 
     801  return sensors_adm9240_init(); 
    796802} 
    797803 
  • lm-sensors/trunk/kernel/chips/bt869.c

    r513 r516  
    3333#else 
    3434#define __init 
     35#define __initdata 
    3536#endif 
    3637 
     
    8384#endif /* MODULE */ 
    8485 
    85 static int __init bt869_init(void); 
     86#ifdef MODULE 
     87static 
     88#else 
     89extern 
     90#endif 
     91       int __init sensors_bt869_init(void); 
    8692static int __init bt869_cleanup(void); 
    8793static int bt869_attach_adapter(struct i2c_adapter *adapter); 
     
    144150 
    145151/* Used by init/cleanup */ 
    146 static int __init bt869_initialized = 0; 
     152static int __initdata bt869_initialized = 0; 
    147153 
    148154/* I choose here for semi-static bt869 allocation. Complete dynamic 
     
    525531} 
    526532 
    527 int __init bt869_init(void) 
     533int __init sensors_bt869_init(void) 
    528534{ 
    529535  int res; 
     
    564570int init_module(void) 
    565571{ 
    566   return bt869_init(); 
     572  return sensors_bt869_init(); 
    567573} 
    568574 
  • lm-sensors/trunk/kernel/chips/eeprom.c

    r513 r516  
    3232#else 
    3333#define __init 
     34#define __initdata 
    3435#endif 
    3536 
     
    8283#endif /* MODULE */ 
    8384 
    84 static int __init eeprom_init(void); 
     85#ifdef MODULE 
     86static 
     87#else 
     88extern 
     89#endif 
     90       int __init sensors_eeprom_init(void); 
    8591static int __init eeprom_cleanup(void); 
    8692 
     
    141147 
    142148/* Used by init/cleanup */ 
    143 static int __init eeprom_initialized = 0; 
     149static int __initdata eeprom_initialized = 0; 
    144150 
    145151/* I choose here for semi-static LM78 allocation. Complete dynamic 
     
    391397} 
    392398 
    393 int __init eeprom_init(void) 
     399int __init sensors_eeprom_init(void) 
    394400{ 
    395401  int res; 
     
    430436int init_module(void) 
    431437{ 
    432   return eeprom_init(); 
     438  return sensors_eeprom_init(); 
    433439} 
    434440 
  • lm-sensors/trunk/kernel/chips/gl518sm.c

    r513 r516  
    3333#else 
    3434#define __init 
     35#define __initdata 
    3536#endif 
    3637 
     
    175176#endif /* MODULE */ 
    176177 
    177 static int __init gl518_init(void); 
     178#ifdef MODULE 
     179static 
     180#else 
     181extern 
     182#endif 
     183       int __init sensors_gl518_init(void); 
    178184static int __init gl518_cleanup(void); 
    179185static int gl518_attach_adapter(struct i2c_adapter *adapter); 
     
    255261 
    256262/* Used by init/cleanup */ 
    257 static int __init gl518_initialized = 0; 
     263static int __initdata gl518_initialized = 0; 
    258264 
    259265/* I choose here for semi-static GL518SM allocation. Complete dynamic 
     
    904910} 
    905911 
    906 int __init gl518_init(void) 
     912int __init sensors_gl518_init(void) 
    907913{ 
    908914  int res; 
     
    943949int init_module(void) 
    944950{ 
    945   return gl518_init(); 
     951  return sensors_gl518_init(); 
    946952} 
    947953 
  • lm-sensors/trunk/kernel/chips/gl520sm.c

    r513 r516  
    3333#else 
    3434#define __init 
     35#define __initdata 
    3536#endif 
    3637 
     
    179180#endif /* MODULE */ 
    180181 
    181 static int __init gl520_init(void); 
     182#ifdef MODULE 
     183static 
     184#else 
     185extern 
     186#endif 
     187       int __init sensors_gl520_init(void); 
    182188static int __init gl520_cleanup(void); 
    183189static int gl520_attach_adapter(struct i2c_adapter *adapter); 
     
    265271 
    266272/* Used by init/cleanup */ 
    267 static int __init gl520_initialized = 0; 
     273static int __initdata gl520_initialized = 0; 
    268274 
    269275/* I choose here for semi-static GL520SM allocation. Complete dynamic 
     
    792798} 
    793799 
    794 int __init gl520_init(void) 
     800int __init sensors_gl520_init(void) 
    795801{ 
    796802  int res; 
     
    831837int init_module(void) 
    832838{ 
    833   return gl520_init(); 
     839  return sensors_gl520_init(); 
    834840} 
    835841 
  • lm-sensors/trunk/kernel/chips/icspll.c

    r513 r516  
    3939#else 
    4040#define __init 
     41#define __initdata 
    4142#endif 
    4243 
     
    6465#endif /* MODULE */ 
    6566 
    66 static int __init icspll_init(void); 
     67#ifdef MODULE 
     68static 
     69#else 
     70extern 
     71#endif 
     72       int __init sensors_icspll_init(void); 
    6773static int __init icspll_cleanup(void); 
    6874 
     
    111117 
    112118/* Used by init/cleanup */ 
    113 static int __init icspll_initialized = 0; 
     119static int __initdata icspll_initialized = 0; 
    114120 
    115121/* I choose here for semi-static allocation. Complete dynamic 
     
    320326} 
    321327 
    322 int __init icspll_init(void) 
     328int __init sensors_icspll_init(void) 
    323329{ 
    324330  int res; 
     
    359365int init_module(void) 
    360366{ 
    361   return icspll_init(); 
     367  return sensors_icspll_init(); 
    362368} 
    363369 
  • lm-sensors/trunk/kernel/chips/lm75.c

    r513 r516  
    3131#else 
    3232#define __init 
     33#define __initdata 
    3334#endif 
    3435 
     
    7879#endif /* MODULE */ 
    7980 
    80 static int __init lm75_init(void); 
     81#ifdef MODULE 
     82static 
     83#else 
     84extern 
     85#endif 
     86       int __init sensors_lm75_init(void); 
    8187static int __init lm75_cleanup(void); 
    8288static int lm75_attach_adapter(struct i2c_adapter *adapter); 
     
    120126 
    121127/* Used by init/cleanup */ 
    122 static int __init lm75_initialized = 0; 
     128static int __initdata lm75_initialized = 0; 
    123129 
    124130/* I choose here for semi-static LM75 allocation. Complete dynamic 
     
    379385} 
    380386 
    381 int __init lm75_init(void) 
     387int __init sensors_lm75_init(void) 
    382388{ 
    383389  int res; 
     
    418424int init_module(void) 
    419425{ 
    420   return lm75_init(); 
     426  return sensors_lm75_init(); 
    421427} 
    422428 
  • lm-sensors/trunk/kernel/chips/lm78.c

    r513 r516  
    3737#else 
    3838#define __init 
     39#define __initdata 
    3940#endif 
    4041 
     
    203204 
    204205 
    205 static int __init lm78_init(void); 
     206#ifdef MODULE 
     207static 
     208#else 
     209extern 
     210#endif 
     211       int __init sensors_lm78_init(void); 
    206212static int __init lm78_cleanup(void); 
    207213 
     
    251257 
    252258/* Used by lm78_init/cleanup */ 
    253 static int __init lm78_initialized = 0; 
     259static int __initdata lm78_initialized = 0; 
    254260 
    255261/* The /proc/sys entries */ 
     
    788794} 
    789795 
    790 int __init lm78_init(void) 
     796int __init sensors_lm78_init(void) 
    791797{ 
    792798  int res; 
     
    827833int init_module(void) 
    828834{ 
    829   return lm78_init(); 
     835  return sensors_lm78_init(); 
    830836} 
    831837 
  • lm-sensors/trunk/kernel/chips/lm80.c

    r513 r516  
    3838#else 
    3939#define __init 
     40#define __initdata 
    4041#endif 
    4142 
     
    198199 
    199200 
    200 static int __init lm80_init(void); 
     201static int __init sensors_lm80_init(void); 
    201202static int __init lm80_cleanup(void); 
    202203 
     
    244245 
    245246/* Used by lm80_init/cleanup */ 
    246 static int __init lm80_initialized = 0; 
     247static int __initdata lm80_initialized = 0; 
    247248 
    248249/* The /proc/sys entries */ 
     
    672673} 
    673674 
    674 int __init lm80_init(void) 
     675int __init sensors_lm80_init(void) 
    675676{ 
    676677  int res; 
     
    711712int init_module(void) 
    712713{ 
    713   return lm80_init(); 
     714  return sensors_lm80_init(); 
    714715} 
    715716 
  • lm-sensors/trunk/kernel/chips/ltc1710.c

    r513 r516  
    5454#else 
    5555#define __init 
     56#define __initdata 
    5657#endif 
    5758 
     
    8990#endif /* MODULE */ 
    9091 
    91 static int __init ltc1710_init(void); 
     92#ifdef MODULE 
     93static 
     94#else 
     95extern 
     96#endif 
     97       int __init sensors_ltc1710_init(void); 
    9298static int __init ltc1710_cleanup(void); 
    9399static int ltc1710_attach_adapter(struct i2c_adapter *adapter); 
     
    131137 
    132138/* Used by init/cleanup */ 
    133 static int __init ltc1710_initialized = 0; 
     139static int __initdata ltc1710_initialized = 0; 
    134140 
    135141/* I choose here for semi-static LTC1710 allocation. Complete dynamic 
     
    355361} 
    356362 
    357 int __init ltc1710_init(void) 
     363int __init sensors_ltc1710_init(void) 
    358364{ 
    359365  int res; 
     
    394400int init_module(void) 
    395401{ 
    396   return ltc1710_init(); 
     402  return sensors_ltc1710_init(); 
    397403} 
    398404 
  • lm-sensors/trunk/kernel/chips/matorb.c

    r513 r516  
    3535#else 
    3636#define __init 
     37#define __initdata 
    3738#endif 
    3839 
     
    6566#endif /* MODULE */ 
    6667 
    67 static int __init matorb_init(void); 
     68#ifdef MODULE 
     69static 
     70#else 
     71extern 
     72#endif 
     73       int __init sensors_matorb_init(void); 
    6874static int __init matorb_cleanup(void); 
    6975static int matorb_attach_adapter(struct i2c_adapter *adapter); 
     
    105111 
    106112/* Used by init/cleanup */ 
    107 static int __init matorb_initialized = 0; 
     113static int __initdata matorb_initialized = 0; 
    108114 
    109115/* I choose here for semi-static MATORB allocation. Complete dynamic 
     
    325331} 
    326332 
    327 int __init matorb_init(void) 
     333int __init sensors_matorb_init(void) 
    328334{ 
    329335  int res; 
     
    364370int init_module(void) 
    365371{ 
    366   return matorb_init(); 
     372  return sensors_matorb_init(); 
    367373} 
    368374 
  • lm-sensors/trunk/kernel/chips/maxilife.c

    r513 r516  
    5656#else 
    5757#define __init 
     58#define __initdata 
    5859#endif 
    5960 
     
    159160 
    160161 
    161 static int __init maxi_init(void); 
     162#ifdef MODULE 
     163static 
     164#else 
     165extern 
     166#endif 
     167       int __init sensors_maxi_init(void); 
    162168static int __init maxi_cleanup(void); 
    163169 
     
    213219 
    214220/* Used by maxi_init/cleanup */ 
    215 static int __init maxi_initialized = 0; 
     221static int __initdata maxi_initialized = 0; 
    216222 
    217223/* Default firmware version. Use module option "maxi_version" 
     
    717723} 
    718724 
    719 int __init maxi_init(void) 
     725int __init sensors_maxi_init(void) 
    720726{ 
    721727   int res; 
     
    759765int init_module(void) 
    760766{ 
    761    return maxi_init(); 
     767   return sensors_maxi_init(); 
    762768} 
    763769 
  • lm-sensors/trunk/kernel/chips/sis5595.c

    r513 r516  
    4343#else 
    4444#define __init 
     45#define __initdata 
    4546#endif 
    4647 
     
    183184 
    184185 
    185 static int __init sis5595_init(void); 
     186#ifdef MODULE 
     187static 
     188#else 
     189extern 
     190#endif 
     191       int __init sensors_sis5595_init(void); 
    186192static int __init sis5595_cleanup(void); 
    187193 
     
    232238 
    233239/* Used by sis5595_init/cleanup */ 
    234 static int __init sis5595_initialized = 0; 
     240static int __initdata sis5595_initialized = 0; 
    235241 
    236242/* The /proc/sys entries */ 
     
    713719} 
    714720 
    715 int __init sis5595_init(void) 
     721int __init sensors_sis5595_init(void) 
    716722{ 
    717723  int res,addr; 
     
    758764int init_module(void) 
    759765{ 
    760   return sis5595_init(); 
     766  return sensors_sis5595_init(); 
    761767} 
    762768 
  • lm-sensors/trunk/kernel/chips/w83781d.c

    r513 r516  
    4949#else 
    5050#define __init 
     51#define __initdata 
    5152#endif 
    5253 
     
    355356 
    356357 
    357 static int __init w83781d_init(void); 
     358#ifdef MODULE 
     359static 
     360#else 
     361extern 
     362#endif 
     363       int __init sensors_w83781d_init(void); 
    358364static int __init w83781d_cleanup(void); 
    359365 
     
    416422 
    417423/* Used by w83781d_init/cleanup */ 
    418 static int __init w83781d_initialized = 0; 
     424static int __initdata w83781d_initialized = 0; 
    419425 
    420426/* The /proc/sys entries */ 
     
    14861492#endif 
    14871493 
    1488 int __init w83781d_init(void) 
     1494int __init sensors_w83781d_init(void) 
    14891495{ 
    14901496  int res; 
     
    15261532int init_module(void) 
    15271533{ 
    1528   return w83781d_init(); 
     1534  return sensors_w83781d_init(); 
    15291535} 
    15301536 
  • lm-sensors/trunk/kernel/sensors.c

    r513 r516  
    792792} 
    793793 
     794#else /* ndef MODULE */ 
     795 
     796#ifdef CONFIG_SENSORS_ADM1021 
     797        extern int sensors_adm1021_init(void); 
     798#endif 
     799#ifdef CONFIG_SENSORS_ADM9024 
     800        extern int sensors_adm9024_init(void); 
     801#endif 
     802#ifdef CONFIG_SENSORS_GL518SM 
     803        extern int sensors_gl518sm_init(void); 
     804#endif 
     805#ifdef CONFIG_SENSORS_LM75 
     806        extern int sensors_lm75_init(void); 
     807#endif 
     808#ifdef CONFIG_SENSORS_LM78 
     809        extern int sensors_lm78_init(void); 
     810#endif 
     811#ifdef CONFIG_SENSORS_LM80 
     812        extern int sensors_lm80_init(void); 
     813#endif 
     814#ifdef CONFIG_SENSORS_SIS5595 
     815        extern int sensors_sis5595_init(void); 
     816#endif 
     817#ifdef CONFIG_SENSORS_W83781D 
     818        extern int sensors_w83781d_init(void); 
     819#endif 
     820#ifdef CONFIG_SENSORS_EEPROM 
     821        extern int sensors_eeprom_init(void); 
     822#endif 
     823#ifdef CONFIG_SENSORS_LTC1710 
     824        extern int sensors_ltc1710_init(void); 
     825#endif 
     826 
     827int __init sensors_init_all(void) 
     828{ 
     829        sensors_init(); 
     830#ifdef CONFIG_SENSORS_ADM1021 
     831        sensors_adm1021_init(); 
     832#endif 
     833#ifdef CONFIG_SENSORS_ADM9024 
     834        sensors_adm9024_init(); 
     835#endif 
     836#ifdef CONFIG_SENSORS_GL518SM 
     837        sensors_gl518sm_init(); 
     838#endif 
     839#ifdef CONFIG_SENSORS_LM75 
     840        sensors_lm75_init(); 
     841#endif 
     842#ifdef CONFIG_SENSORS_LM78 
     843        sensors_lm78_init(); 
     844#endif 
     845#ifdef CONFIG_SENSORS_LM80 
     846        sensors_lm80_init(); 
     847#endif 
     848#ifdef CONFIG_SENSORS_SIS5595 
     849        sensors_sis5595_init(); 
     850#endif 
     851#ifdef CONFIG_SENSORS_W83781D 
     852        sensors_w83781d_init(); 
     853#endif 
     854#ifdef CONFIG_SENSORS_EEPROM 
     855        sensors_eeprom_init(); 
     856#endif 
     857#ifdef CONFIG_SENSORS_LTC1710 
     858        sensors_ltc1710_init(); 
     859#endif 
     860        return 0; 
     861} 
     862 
    794863#endif /* MODULE */ 
    795864 
  • lm-sensors/trunk/mkpatch/Config.in

    r514 r516  
    22# Character device configuration 
    33# 
    4 mainmenu_option next_comment 
    5 comment 'Hardware sensors support' 
    64 
    7 dep_tristate 'Hardware sensors support' CONFIG_SENSORS $CONFIG_I2C 
    8  
    9 if [ "$CONFIG_SENSORS" != "n" ]; then 
    10   dep_tristate '  Analog Devices ADM1021 and compatibles' CONFIG_SENSORS_ADM1021 $CONFIG_SENSORS 
    11   dep_tristate '  Analog Devices ADM9240 and compatibles' CONFIG_SENSORS_ADM9240 $CONFIG_SENSORS 
    12   dep_tristate '  Genesys Logic GL518SM' CONFIG_SENSORS_GL518SM $CONFIG_SENSORS 
    13   dep_tristate '  National Semiconductors LM75' CONFIG_SENSORS_LM75 $CONFIG_SENSORS 
    14   dep_tristate '  National Semiconductors LM78' CONFIG_SENSORS_LM78 $CONFIG_SENSORS 
    15   dep_tristate '  National Semiconductors LM80' CONFIG_SENSORS_LM80 $CONFIG_SENSORS 
    16   dep_tristate '  Silicon Integrated Systems Corp. SiS5595' CONFIG_SENSORS_SIS5595 $CONFIG_SENSORS 
    17   dep_tristate '  Western Digital W83781D, W83782D and W83783S' CONFIG_SENSORS_W83781D $CONFIG_SENSORS 
    18   dep_bool '  Other I2C devices' CONFIG_SENSORS_OTHER CONFIG_SENSORS 
    19   if [ "$CONFIG_SENSORS_OTHER" = "y" ] ; then 
    20     dep_tristate '  EEprom (DIMM) reader ' CONFIG_SENSORS_EEPROM $CONFIG_SENSORS_OTHER 
    21     dep_tristate ' Linear Technologies LTC1710 ' CONFIG_SENSORS_LTC1710 $CONFIG_SENSORS_OTHER 
     5if [ "$CONFIG_I2C" != "n" ] ; then 
     6  mainmenu_option next_comment 
     7  comment 'Hardware sensors support' 
     8   
     9  dep_tristate 'Hardware sensors support' CONFIG_SENSORS $CONFIG_I2C 
     10   
     11  if [ "$CONFIG_SENSORS" != "n" ]; then 
     12    dep_tristate '  Analog Devices ADM1021 and compatibles' CONFIG_SENSORS_ADM1021 $CONFIG_SENSORS 
     13    dep_tristate '  Analog Devices ADM9240 and compatibles' CONFIG_SENSORS_ADM9240 $CONFIG_SENSORS 
     14    dep_tristate '  Genesys Logic GL518SM' CONFIG_SENSORS_GL518SM $CONFIG_SENSORS 
     15    dep_tristate '  National Semiconductors LM75' CONFIG_SENSORS_LM75 $CONFIG_SENSORS 
     16    dep_tristate '  N