Changeset 560
- Timestamp:
- 09/13/99 01:02:35 (14 years ago)
- Location:
- lm-sensors/trunk/kernel
- Files:
-
- 3 modified
-
chips/Module.mk (modified) (1 diff)
-
chips/thmc50.c (modified) (3 diffs)
-
include/sensors.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/kernel/chips/Module.mk
r507 r560 29 29 $(MODULE_DIR)/w83781d.o $(MODULE_DIR)/sis5595.o \ 30 30 $(MODULE_DIR)/maxilife.o $(MODULE_DIR)/bt869.o \ 31 $(MODULE_DIR)/matorb.o $(MODULE_DIR)/gl520sm.o 31 $(MODULE_DIR)/matorb.o $(MODULE_DIR)/gl520sm.o \ 32 $(MODULE_DIR)/thmc50.o 32 33 33 34 # Include all dependency files -
lm-sensors/trunk/kernel/chips/thmc50.c
r559 r560 19 19 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 20 20 */ 21 22 #define DEBUG 1 21 23 22 24 #include <linux/module.h> … … 144 146 int thmc50_detect(struct i2c_adapter *adapter, int address, int kind) 145 147 { 146 int company ;148 int company,i; 147 149 struct i2c_client *new_client; 148 150 struct thmc50_data *data; 149 151 int err=0; 150 152 const char *type_name,*client_name; 153 154 #ifdef DEBUG 155 printk("Probing for THMC50 at 0x%2.X on bus %d\n",address,adapter->id); 156 #endif 151 157 152 158 /* Make sure we aren't probing the ISA bus!! This is just a safety check … … 180 186 /* Now, we do the remaining detection. */ 181 187 company = i2c_smbus_read_byte_data(adapter,address,0x3E); 182 = i2c_smbus_read_word_data(adapter,address,2);183 os = i2c_smbus_read_word_data(adapter,address,3);184 188 185 189 if (company != 0x4E) -
lm-sensors/trunk/kernel/include/sensors.h
r525 r560 328 328 #define I2C_DRIVERID_MATORB 1015 329 329 #define I2C_DRIVERID_GL520 1016 330 #define I2C_DRIVERID_THMC50 1017 330 331 331 332 /* Sysctl IDs */ … … 604 605 #define MATORB_SYSCTL_DISP 1000 605 606 607 #define THMC50_SYSCTL_TEMP 1200 /* Degrees Celcius */ 608 609 606 610 #endif /* def SENSORS_SENSORS_H */
