Changeset 3527
- Timestamp:
- 02/04/01 23:21:19 (12 years ago)
- Location:
- i2c/trunk
- Files:
-
- 2 added
- 8 modified
-
kernel/Makefile (modified) (3 diffs)
-
kernel/Module.mk (modified) (1 diff)
-
kernel/i2c-id.h (modified) (1 diff)
-
kernel/i2c-proc.c (added)
-
kernel/i2c-proc.h (added)
-
kernel/i2c.h (modified) (1 diff)
-
mkpatch/Config.in (modified) (1 diff)
-
mkpatch/FILES (modified) (2 diffs)
-
mkpatch/INCLUDES (modified) (1 diff)
-
mkpatch/mkpatch.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
i2c/trunk/kernel/Makefile
r3485 r3527 4 4 CURRENT=$(shell uname -r) 5 5 I2CINCLUDES := i2c.h i2c-dev.h i2c-algo-bit.h i2c-algo-pcf.h \ 6 i2c-elektor.h i2c-pcf8584.h i2c-id.h 6 i2c-elektor.h i2c-pcf8584.h i2c-id.h i2c-proc.h 7 7 I2CKERNELDIR := /usr/include/linux 8 8 I2CMODDIR := /lib/modules/$(CURRENT)/misc … … 13 13 14 14 MOD_SUB_DIRS = 15 MX_OBJS = i2c-core.o i2c-algo-bit.o i2c-algo-pcf.o 15 MX_OBJS = i2c-core.o i2c-algo-bit.o i2c-algo-pcf.o i2c-proc.o 16 16 17 17 M_OBJS = i2c-dev.o i2c-philips-par.o i2c-elv.o i2c-velleman.o i2c-elektor.o … … 35 35 insmod bit-lp.o base=0x278 36 36 insmod i2c-dev.o 37 insmod drivers/eeprom.o test=137 insmod i2c-proc.o 38 38 39 39 down: 40 -rmmod eeprom40 -rmmod i2c-proc.o 41 41 -rmmod i2c-dev 42 42 -rmmod bit-lp -
i2c/trunk/kernel/Module.mk
r3426 r3527 57 57 KERNELINCLUDES += $(MODULE_DIR)/i2c-elektor.h $(MODULE_DIR)/i2c-pcf8584.h 58 58 endif 59 ifneq ($(shell if grep -q '^CONFIG_I2C_PROC=y' $(LINUX)/.config; then echo 1; fi),1) 60 KERNELTARGETS += $(MODULE_DIR)/i2c-proc.o 61 KERNELINCLUDES += $(MODULE_DIR)/i2c-proc.h 62 endif 59 63 60 64 # Include all dependency files -
i2c/trunk/kernel/i2c-id.h
r3520 r3527 94 94 #define I2C_DRIVERID_I2CPROC 901 95 95 96 /* IDs -- Use DRIVERIDs 1000-1999 for sensors. 97 These were originally in sensors.h in the lm_sensors package */ 98 #define I2C_DRIVERID_LM78 1002 99 #define I2C_DRIVERID_LM75 1003 100 #define I2C_DRIVERID_GL518 1004 101 #define I2C_DRIVERID_EEPROM 1005 102 #define I2C_DRIVERID_W83781D 1006 103 #define I2C_DRIVERID_LM80 1007 104 #define I2C_DRIVERID_ADM1021 1008 105 #define I2C_DRIVERID_ADM9240 1009 106 #define I2C_DRIVERID_LTC1710 1010 107 #define I2C_DRIVERID_SIS5595 1011 108 #define I2C_DRIVERID_ICSPLL 1012 109 #define I2C_DRIVERID_BT869 1013 110 #define I2C_DRIVERID_MAXILIFE 1014 111 #define I2C_DRIVERID_MATORB 1015 112 #define I2C_DRIVERID_GL520 1016 113 #define I2C_DRIVERID_THMC50 1017 114 #define I2C_DRIVERID_DDCMON 1018 115 #define I2C_DRIVERID_VIA686A 1019 116 #define I2C_DRIVERID_ADM1025 1020 117 #define I2C_DRIVERID_LM87 1021 118 #define I2C_DRIVERID_PCF8574 1022 119 #define I2C_DRIVERID_MTP008 1023 120 #define I2C_DRIVERID_DS1621 1024 121 96 122 /* 97 123 * ---- Adapter types ---------------------------------------------------- -
i2c/trunk/kernel/i2c.h
r3501 r3527 550 550 force} 551 551 552 /* Detect whether we are on the isa bus. If this returns true, all i2c 553 access will fail! */ 554 #define i2c_is_isa_client(clientptr) \ 555 ((clientptr)->adapter->algo->id == I2C_ALGO_ISA) 556 #define i2c_is_isa_adapter(adapptr) \ 557 ((adapptr)->algo->id == I2C_ALGO_ISA) 558 552 559 #endif /* def __KERNEL__ */ 553 560 #endif /* I2C_H */ -
i2c/trunk/mkpatch/Config.in
r3490 r3527 26 26 dep_tristate 'I2C device interface' CONFIG_I2C_CHARDEV $CONFIG_I2C 27 27 28 dep_tristate 'I2C /proc interface' CONFIG_I2C_PROC $CONFIG_I2C 29 28 30 fi 29 31 endmenu -
i2c/trunk/mkpatch/FILES
r3501 r3527 7 7 kernel/i2c-philips-par.c drivers/i2c/i2c-philips-par.c 8 8 kernel/i2c-velleman.c drivers/i2c/i2c-velleman.c 9 kernel/i2c-proc.c drivers/i2c/i2c-proc.c 9 10 kernel/i2c-pcf8584.h drivers/i2c/i2c-pcf8584.h 10 11 kernel/i2c.h include/linux/i2c.h … … 14 15 kernel/i2c-elektor.h include/linux/i2c-elektor.h 15 16 kernel/i2c-id.h include/linux/i2c-id.h 17 kernel/i2c-proc.h include/linux/i2c-proc.h 16 18 mkpatch/Config.in drivers/i2c/Config.in 17 19 doc/proc-interface Documentation/i2c/proc-interface -
i2c/trunk/mkpatch/INCLUDES
r3410 r3527 5 5 "i2c-elektor.h" <linux/i2c-elektor.h> 6 6 "i2c-id.h" <linux/i2c-id.h> 7 "i2c-proc.h" <linux/i2c-proc.h> -
i2c/trunk/mkpatch/mkpatch.pl
r3523 r3527 258 258 module will be called i2c-dev.o. 259 259 260 I2C /proc support 261 CONFIG_I2C_PROC 262 This provides support for i2c device entries in the /proc filesystem. 263 The entries will be found in /proc/sys/dev/sensors. 264 265 This code is also available as a module. If you want to compile 266 it as a module, say M here and read Documentation/modules.txt. The 267 module will be called i2c-dev.o. 268 260 269 EOF 261 270 $printed = 1; … … 506 515 ifeq ($(CONFIG_I2C_CHARDEV),m) 507 516 M_OBJS += i2c-dev.o 517 endif 518 endif 519 520 ifeq ($(CONFIG_I2C_PROC),y) 521 L_OBJS += i2c-proc.o 522 else 523 ifeq ($(CONFIG_I2C_PROC),m) 524 M_OBJS += i2c-proc.o 508 525 endif 509 526 endif
