Changeset 560

Show
Ignore:
Timestamp:
09/13/99 01:02:35 (14 years ago)
Author:
phil
Message:

(Phil) thmc50.o now compiles and inserts as part of the package.

Location:
lm-sensors/trunk/kernel
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/kernel/chips/Module.mk

    r507 r560  
    2929                      $(MODULE_DIR)/w83781d.o $(MODULE_DIR)/sis5595.o \ 
    3030                      $(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 
    3233 
    3334# Include all dependency files 
  • lm-sensors/trunk/kernel/chips/thmc50.c

    r559 r560  
    1919    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 
    2020*/ 
     21 
     22#define DEBUG 1 
    2123 
    2224#include <linux/module.h> 
     
    144146int thmc50_detect(struct i2c_adapter *adapter, int address, int kind) 
    145147{ 
    146   int company; 
     148  int company,i; 
    147149  struct i2c_client *new_client; 
    148150  struct thmc50_data *data; 
    149151  int err=0; 
    150152  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 
    151157 
    152158  /* Make sure we aren't probing the ISA bus!! This is just a safety check 
     
    180186  /* Now, we do the remaining detection. */ 
    181187  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); 
    184188 
    185189  if (company != 0x4E) 
  • lm-sensors/trunk/kernel/include/sensors.h

    r525 r560  
    328328#define I2C_DRIVERID_MATORB 1015 
    329329#define I2C_DRIVERID_GL520 1016 
     330#define I2C_DRIVERID_THMC50 1017 
    330331 
    331332/* Sysctl IDs */ 
     
    604605#define MATORB_SYSCTL_DISP 1000 
    605606 
     607#define THMC50_SYSCTL_TEMP 1200 /* Degrees Celcius */ 
     608 
     609 
    606610#endif /* def SENSORS_SENSORS_H */