mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-12-04 21:58:18 +00:00
(Kyösti) some cleanups for 2.4+
Module refcounting using .owner, removing of inc/dec_use.
These require (yet unreleased) i2c 2.8.0+.
Named initializers everywhere. Unified namespace.
Cleanup for 2.5, remove EXPORT_NO_SYMBOLS, declare everything
static. Apply initcalls.
PCI device registration changes for busses started, replicating
from i2c-amd*. While everything does compile, nothing really
works. Well, maybe i2c-amd* ported back from 2.5 tree.
After updating your work directory, run
> cvs diff -u -r LAST-PRE-2-8-I2C > lm-2.8-patches-1
BEWARE: I have not even insmoded any of these yet.
To compile, you need i2c from cvs too.
For 2.4 kernel :
> cvs co -r lk2-4 i2c
For 2.5 kernel :
> cvs co i2c
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1698 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
2a462eaae3
commit
39391ba6ea
59 files changed
+1596
-5391
No files matched your search
@@ -18,168 +18,3 @@
|
||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
/* Not configurable as a module */
|
||||
|
||||
#include <linux/init.h>
|
||||
|
||||
#ifdef CONFIG_SENSORS_ADM1021
|
||||
extern int sensors_adm1021_init(void);
|
||||
#endif
|
||||
#ifdef CONFIG_SENSORS_ADM1025
|
||||
extern int sensors_adm1025_init(void);
|
||||
#endif
|
||||
#ifdef CONFIG_SENSORS_ADM9240
|
||||
extern int sensors_adm9240_init(void);
|
||||
#endif
|
||||
#ifdef CONFIG_SENSORS_BT869
|
||||
extern int sensors_bt869_init(void);
|
||||
#endif
|
||||
#ifdef CONFIG_SENSORS_DDCMON
|
||||
extern int sensors_ddcmon_init(void);
|
||||
#endif
|
||||
#ifdef CONFIG_SENSORS_DS1621
|
||||
extern int sensors_ds1621_init(void);
|
||||
#endif
|
||||
#ifdef CONFIG_SENSORS_GL518SM
|
||||
extern int sensors_gl518sm_init(void);
|
||||
#endif
|
||||
#ifdef CONFIG_SENSORS_GL520SM
|
||||
extern int sensors_gl520_init(void);
|
||||
#endif
|
||||
#ifdef CONFIG_SENSORS_LM75
|
||||
extern int sensors_lm75_init(void);
|
||||
#endif
|
||||
#ifdef CONFIG_SENSORS_LM78
|
||||
extern int sensors_lm78_init(void);
|
||||
#endif
|
||||
#ifdef CONFIG_SENSORS_LM80
|
||||
extern int sensors_lm80_init(void);
|
||||
#endif
|
||||
#ifdef CONFIG_SENSORS_LM87
|
||||
extern int sensors_lm87_init(void);
|
||||
#endif
|
||||
#ifdef CONFIG_SENSORS_LM92
|
||||
extern int sensors_lm92_init(void);
|
||||
#endif
|
||||
#ifdef CONFIG_SENSORS_MTP008
|
||||
extern int sensors_mtp008_init(void);
|
||||
#endif
|
||||
#ifdef CONFIG_SENSORS_PCF8574
|
||||
extern int sensors_pcf8574_init(void);
|
||||
#endif
|
||||
#ifdef CONFIG_SENSORS_PCF8591
|
||||
extern int sensors_pcf8591_init(void);
|
||||
#endif
|
||||
#ifdef CONFIG_SENSORS_SIS5595
|
||||
extern int sensors_sis5595_init(void);
|
||||
#endif
|
||||
#ifdef CONFIG_SENSORS_SMSC47M1
|
||||
extern int sensors_smsc47m1_init(void);
|
||||
#endif
|
||||
#ifdef CONFIG_SENSORS_THMC50
|
||||
extern int sensors_thmc50_init(void);
|
||||
#endif
|
||||
#ifdef CONFIG_SENSORS_VIA686A
|
||||
extern int sensors_via686a_init(void);
|
||||
#endif
|
||||
#ifdef CONFIG_SENSORS_VT1211
|
||||
extern int sensors_vt1211_init(void);
|
||||
#endif
|
||||
#ifdef CONFIG_SENSORS_VT8231
|
||||
extern int sensors_vt8231_init(void);
|
||||
#endif
|
||||
#ifdef CONFIG_SENSORS_W83781D
|
||||
extern int sensors_w83781d_init(void);
|
||||
#endif
|
||||
#ifdef CONFIG_SENSORS_EEPROM
|
||||
extern int sensors_eeprom_init(void);
|
||||
#endif
|
||||
#ifdef CONFIG_SENSORS_LTC1710
|
||||
extern int sensors_ltc1710_init(void);
|
||||
#endif
|
||||
#ifdef CONFIG_SENSORS_IT87
|
||||
extern int sensors_it87_init(void);
|
||||
#endif
|
||||
|
||||
int __init sensors_init_all(void)
|
||||
{
|
||||
#ifdef CONFIG_SENSORS_ADM1021
|
||||
sensors_adm1021_init();
|
||||
#endif
|
||||
#ifdef CONFIG_SENSORS_ADM1025
|
||||
sensors_adm1025_init();
|
||||
#endif
|
||||
#ifdef CONFIG_SENSORS_ADM9240
|
||||
sensors_adm9240_init();
|
||||
#endif
|
||||
#ifdef CONFIG_SENSORS_BT869
|
||||
sensors_bt869_init();
|
||||
#endif
|
||||
#ifdef CONFIG_SENSORS_DDCMON
|
||||
sensors_ddcmon_init();
|
||||
#endif
|
||||
#ifdef CONFIG_SENSORS_DS1621
|
||||
sensors_ds1621_init();
|
||||
#endif
|
||||
#ifdef CONFIG_SENSORS_GL518SM
|
||||
sensors_gl518sm_init();
|
||||
#endif
|
||||
#ifdef CONFIG_SENSORS_GL520SM
|
||||
sensors_gl520_init();
|
||||
#endif
|
||||
#ifdef CONFIG_SENSORS_LM75
|
||||
sensors_lm75_init();
|
||||
#endif
|
||||
#ifdef CONFIG_SENSORS_LM78
|
||||
sensors_lm78_init();
|
||||
#endif
|
||||
#ifdef CONFIG_SENSORS_LM80
|
||||
sensors_lm80_init();
|
||||
#endif
|
||||
#ifdef CONFIG_SENSORS_LM87
|
||||
sensors_lm87_init();
|
||||
#endif
|
||||
#ifdef CONFIG_SENSORS_LM92
|
||||
sensors_lm92_init();
|
||||
#endif
|
||||
#ifdef CONFIG_SENSORS_PCF8574
|
||||
sensors_pcf8574_init();
|
||||
#endif
|
||||
#ifdef CONFIG_SENSORS_PCF8591
|
||||
sensors_pcf8591_init();
|
||||
#endif
|
||||
#ifdef CONFIG_SENSORS_MTP008
|
||||
sensors_mtp008_init();
|
||||
#endif
|
||||
#ifdef CONFIG_SENSORS_SIS5595
|
||||
sensors_sis5595_init();
|
||||
#endif
|
||||
#ifdef CONFIG_SENSORS_SMSC47M1
|
||||
sensors_smsc47m1_init();
|
||||
#endif
|
||||
#ifdef CONFIG_SENSORS_THMC50
|
||||
sensors_thmc50_init();
|
||||
#endif
|
||||
#ifdef CONFIG_SENSORS_VIA686A
|
||||
sensors_via686a_init();
|
||||
#endif
|
||||
#ifdef CONFIG_SENSORS_VT1211
|
||||
sensors_vt1211_init();
|
||||
#endif
|
||||
#ifdef CONFIG_SENSORS_VT8231
|
||||
sensors_vt8231_init();
|
||||
#endif
|
||||
#ifdef CONFIG_SENSORS_W83781D
|
||||
sensors_w83781d_init();
|
||||
#endif
|
||||
#ifdef CONFIG_SENSORS_EEPROM
|
||||
sensors_eeprom_init();
|
||||
#endif
|
||||
#ifdef CONFIG_SENSORS_LTC1710
|
||||
sensors_ltc1710_init();
|
||||
#endif
|
||||
#ifdef CONFIG_SENSORS_IT87
|
||||
sensors_it87_init();
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
Reference in new issue
Block a user