root/lm-sensors/trunk/kernel/sensors.c @ 1080

Revision 1080, 3.7 KB (checked in by mds, 12 years ago)

change from gl520sm_init() to gl520_init() to match

what is in driver so patched kernel will work with gl520.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1/*
2    sensors.c - Part of lm_sensors, Linux kernel modules for hardware
3                monitoring
4    Copyright (c) 1998, 1999  Frodo Looijaard <frodol@dds.nl>
5
6    This program is free software; you can redistribute it and/or modify
7    it under the terms of the GNU General Public License as published by
8    the Free Software Foundation; either version 2 of the License, or
9    (at your option) any later version.
10
11    This program is distributed in the hope that it will be useful,
12    but WITHOUT ANY WARRANTY; without even the implied warranty of
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14    GNU General Public License for more details.
15
16    You should have received a copy of the GNU General Public License
17    along with this program; if not, write to the Free Software
18    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19*/
20
21#include <linux/init.h>
22
23#ifdef MODULE
24extern int init_module(void);
25extern int cleanup_module(void);
26#endif                          /* MODULE */
27
28#ifdef MODULE
29
30
31int init_module(void)
32{
33        return 0;
34}
35
36int cleanup_module(void)
37{
38        return 0;
39}
40
41#else                           /* ndef MODULE */
42
43#ifdef CONFIG_SENSORS_ADM1021
44extern int sensors_adm1021_init(void);
45#endif
46#ifdef CONFIG_SENSORS_ADM1025
47extern int sensors_adm1025_init(void);
48#endif
49#ifdef CONFIG_SENSORS_ADM9240
50extern int sensors_adm9240_init(void);
51#endif
52#ifdef CONFIG_SENSORS_BT869
53extern int sensors_bt869_init(void);
54#endif
55#ifdef CONFIG_SENSORS_DDCMON
56extern int sensors_ddcmon_init(void);
57#endif
58#ifdef CONFIG_SENSORS_DS1621
59extern int sensors_ds1621_init(void);
60#endif
61#ifdef CONFIG_SENSORS_GL518SM
62extern int sensors_gl518sm_init(void);
63#endif
64#ifdef CONFIG_SENSORS_GL520SM
65extern int sensors_gl520_init(void);
66#endif
67#ifdef CONFIG_SENSORS_LM75
68extern int sensors_lm75_init(void);
69#endif
70#ifdef CONFIG_SENSORS_LM78
71extern int sensors_lm78_init(void);
72#endif
73#ifdef CONFIG_SENSORS_LM80
74extern int sensors_lm80_init(void);
75#endif
76#ifdef CONFIG_SENSORS_LM87
77extern int sensors_lm87_init(void);
78#endif
79#ifdef CONFIG_SENSORS_MTP008
80extern int sensors_mtp008_init(void);
81#endif
82#ifdef CONFIG_SENSORS_SIS5595
83extern int sensors_sis5595_init(void);
84#endif
85#ifdef CONFIG_SENSORS_THMC50
86extern int sensors_thmc50_init(void);
87#endif
88#ifdef CONFIG_SENSORS_VIA686A
89extern int sensors_via686a_init(void);
90#endif
91#ifdef CONFIG_SENSORS_W83781D
92extern int sensors_w83781d_init(void);
93#endif
94#ifdef CONFIG_SENSORS_EEPROM
95extern int sensors_eeprom_init(void);
96#endif
97#ifdef CONFIG_SENSORS_LTC1710
98extern int sensors_ltc1710_init(void);
99#endif
100
101int __init sensors_init_all(void)
102{
103        sensors_init();
104#ifdef CONFIG_SENSORS_ADM1021
105        sensors_adm1021_init();
106#endif
107#ifdef CONFIG_SENSORS_ADM1025
108        sensors_adm1025_init();
109#endif
110#ifdef CONFIG_SENSORS_ADM9240
111        sensors_adm9240_init();
112#endif
113#ifdef CONFIG_SENSORS_BT869
114        sensors_bt869_init();
115#endif
116#ifdef CONFIG_SENSORS_DDCMON
117        sensors_ddcmon_init();
118#endif
119#ifdef CONFIG_SENSORS_DS1621
120        sensors_ds1621_init();
121#endif
122#ifdef CONFIG_SENSORS_GL518SM
123        sensors_gl518sm_init();
124#endif
125#ifdef CONFIG_SENSORS_GL520SM
126        sensors_gl520_init();
127#endif
128#ifdef CONFIG_SENSORS_LM75
129        sensors_lm75_init();
130#endif
131#ifdef CONFIG_SENSORS_LM78
132        sensors_lm78_init();
133#endif
134#ifdef CONFIG_SENSORS_LM80
135        sensors_lm80_init();
136#endif
137#ifdef CONFIG_SENSORS_LM87
138        sensors_lm87_init();
139#endif
140#ifdef CONFIG_SENSORS_MTP008
141        sensors_mtp008_init();
142#endif
143#ifdef CONFIG_SENSORS_SIS5595
144        sensors_sis5595_init();
145#endif
146#ifdef CONFIG_SENSORS_THMC50
147        sensors_thmc50_init();
148#endif
149#ifdef CONFIG_SENSORS_VIA686A
150        sensors_via686a_init();
151#endif
152#ifdef CONFIG_SENSORS_W83781D
153        sensors_w83781d_init();
154#endif
155#ifdef CONFIG_SENSORS_EEPROM
156        sensors_eeprom_init();
157#endif
158#ifdef CONFIG_SENSORS_LTC1710
159        sensors_ltc1710_init();
160#endif
161        return 0;
162}
163
164#endif                          /* MODULE */
Note: See TracBrowser for help on using the browser.