| 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 | |
|---|
| 22 | #include <linux/init.h> |
|---|
| 23 | |
|---|
| 24 | #ifdef MODULE |
|---|
| 25 | extern int init_module(void); |
|---|
| 26 | extern int cleanup_module(void); |
|---|
| 27 | #endif /* MODULE */ |
|---|
| 28 | |
|---|
| 29 | #ifdef MODULE |
|---|
| 30 | |
|---|
| 31 | |
|---|
| 32 | int init_module(void) |
|---|
| 33 | { |
|---|
| 34 | return 0; |
|---|
| 35 | } |
|---|
| 36 | |
|---|
| 37 | int cleanup_module(void) |
|---|
| 38 | { |
|---|
| 39 | return 0; |
|---|
| 40 | } |
|---|
| 41 | |
|---|
| 42 | #else /* ndef MODULE */ |
|---|
| 43 | |
|---|
| 44 | #ifdef CONFIG_SENSORS_ADM1021 |
|---|
| 45 | extern int sensors_adm1021_init(void); |
|---|
| 46 | #endif |
|---|
| 47 | #ifdef CONFIG_SENSORS_ADM1025 |
|---|
| 48 | extern int sensors_adm1025_init(void); |
|---|
| 49 | #endif |
|---|
| 50 | #ifdef CONFIG_SENSORS_ADM9240 |
|---|
| 51 | extern int sensors_adm9240_init(void); |
|---|
| 52 | #endif |
|---|
| 53 | #ifdef CONFIG_SENSORS_BT869 |
|---|
| 54 | extern int sensors_bt869_init(void); |
|---|
| 55 | #endif |
|---|
| 56 | #ifdef CONFIG_SENSORS_DDCMON |
|---|
| 57 | extern int sensors_ddcmon_init(void); |
|---|
| 58 | #endif |
|---|
| 59 | #ifdef CONFIG_SENSORS_DS1621 |
|---|
| 60 | extern int sensors_ds1621_init(void); |
|---|
| 61 | #endif |
|---|
| 62 | #ifdef CONFIG_SENSORS_GL518SM |
|---|
| 63 | extern int sensors_gl518sm_init(void); |
|---|
| 64 | #endif |
|---|
| 65 | #ifdef CONFIG_SENSORS_GL520SM |
|---|
| 66 | extern int sensors_gl520_init(void); |
|---|
| 67 | #endif |
|---|
| 68 | #ifdef CONFIG_SENSORS_LM75 |
|---|
| 69 | extern int sensors_lm75_init(void); |
|---|
| 70 | #endif |
|---|
| 71 | #ifdef CONFIG_SENSORS_LM78 |
|---|
| 72 | extern int sensors_lm78_init(void); |
|---|
| 73 | #endif |
|---|
| 74 | #ifdef CONFIG_SENSORS_LM80 |
|---|
| 75 | extern int sensors_lm80_init(void); |
|---|
| 76 | #endif |
|---|
| 77 | #ifdef CONFIG_SENSORS_LM87 |
|---|
| 78 | extern int sensors_lm87_init(void); |
|---|
| 79 | #endif |
|---|
| 80 | #ifdef CONFIG_SENSORS_MTP008 |
|---|
| 81 | extern int sensors_mtp008_init(void); |
|---|
| 82 | #endif |
|---|
| 83 | #ifdef CONFIG_SENSORS_SIS5595 |
|---|
| 84 | extern int sensors_sis5595_init(void); |
|---|
| 85 | #endif |
|---|
| 86 | #ifdef CONFIG_SENSORS_THMC50 |
|---|
| 87 | extern int sensors_thmc50_init(void); |
|---|
| 88 | #endif |
|---|
| 89 | #ifdef CONFIG_SENSORS_VIA686A |
|---|
| 90 | extern int sensors_via686a_init(void); |
|---|
| 91 | #endif |
|---|
| 92 | #ifdef CONFIG_SENSORS_W83781D |
|---|
| 93 | extern int sensors_w83781d_init(void); |
|---|
| 94 | #endif |
|---|
| 95 | #ifdef CONFIG_SENSORS_EEPROM |
|---|
| 96 | extern int sensors_eeprom_init(void); |
|---|
| 97 | #endif |
|---|
| 98 | #ifdef CONFIG_SENSORS_LTC1710 |
|---|
| 99 | extern int sensors_ltc1710_init(void); |
|---|
| 100 | #endif |
|---|
| 101 | #ifdef CONFIG_SENSORS_IT87 |
|---|
| 102 | extern int sensors_it87_init(void); |
|---|
| 103 | #endif |
|---|
| 104 | |
|---|
| 105 | int __init sensors_init_all(void) |
|---|
| 106 | { |
|---|
| 107 | sensors_init(); |
|---|
| 108 | #ifdef CONFIG_SENSORS_ADM1021 |
|---|
| 109 | sensors_adm1021_init(); |
|---|
| 110 | #endif |
|---|
| 111 | #ifdef CONFIG_SENSORS_ADM1025 |
|---|
| 112 | sensors_adm1025_init(); |
|---|
| 113 | #endif |
|---|
| 114 | #ifdef CONFIG_SENSORS_ADM9240 |
|---|
| 115 | sensors_adm9240_init(); |
|---|
| 116 | #endif |
|---|
| 117 | #ifdef CONFIG_SENSORS_BT869 |
|---|
| 118 | sensors_bt869_init(); |
|---|
| 119 | #endif |
|---|
| 120 | #ifdef CONFIG_SENSORS_DDCMON |
|---|
| 121 | sensors_ddcmon_init(); |
|---|
| 122 | #endif |
|---|
| 123 | #ifdef CONFIG_SENSORS_DS1621 |
|---|
| 124 | sensors_ds1621_init(); |
|---|
| 125 | #endif |
|---|
| 126 | #ifdef CONFIG_SENSORS_GL518SM |
|---|
| 127 | sensors_gl518sm_init(); |
|---|
| 128 | #endif |
|---|
| 129 | #ifdef CONFIG_SENSORS_GL520SM |
|---|
| 130 | sensors_gl520_init(); |
|---|
| 131 | #endif |
|---|
| 132 | #ifdef CONFIG_SENSORS_LM75 |
|---|
| 133 | sensors_lm75_init(); |
|---|
| 134 | #endif |
|---|
| 135 | #ifdef CONFIG_SENSORS_LM78 |
|---|
| 136 | sensors_lm78_init(); |
|---|
| 137 | #endif |
|---|
| 138 | #ifdef CONFIG_SENSORS_LM80 |
|---|
| 139 | sensors_lm80_init(); |
|---|
| 140 | #endif |
|---|
| 141 | #ifdef CONFIG_SENSORS_LM87 |
|---|
| 142 | sensors_lm87_init(); |
|---|
| 143 | #endif |
|---|
| 144 | #ifdef CONFIG_SENSORS_MTP008 |
|---|
| 145 | sensors_mtp008_init(); |
|---|
| 146 | #endif |
|---|
| 147 | #ifdef CONFIG_SENSORS_SIS5595 |
|---|
| 148 | sensors_sis5595_init(); |
|---|
| 149 | #endif |
|---|
| 150 | #ifdef CONFIG_SENSORS_THMC50 |
|---|
| 151 | sensors_thmc50_init(); |
|---|
| 152 | #endif |
|---|
| 153 | #ifdef CONFIG_SENSORS_VIA686A |
|---|
| 154 | sensors_via686a_init(); |
|---|
| 155 | #endif |
|---|
| 156 | #ifdef CONFIG_SENSORS_W83781D |
|---|
| 157 | sensors_w83781d_init(); |
|---|
| 158 | #endif |
|---|
| 159 | #ifdef CONFIG_SENSORS_EEPROM |
|---|
| 160 | sensors_eeprom_init(); |
|---|
| 161 | #endif |
|---|
| 162 | #ifdef CONFIG_SENSORS_LTC1710 |
|---|
| 163 | sensors_ltc1710_init(); |
|---|
| 164 | #endif |
|---|
| 165 | #ifdef CONFIG_SENSORS_IT87 |
|---|
| 166 | sensors_it87_init(); |
|---|
| 167 | #endif |
|---|
| 168 | return 0; |
|---|
| 169 | } |
|---|
| 170 | |
|---|
| 171 | #endif /* MODULE */ |
|---|