Changeset 461
- Timestamp:
- 05/12/99 07:17:04 (14 years ago)
- Location:
- lm-sensors/trunk
- Files:
-
- 2 added
- 3 modified
-
Makefile (modified) (1 diff)
-
doc/busses/i2c-voodoo3 (added)
-
doc/chips/bt869 (added)
-
kernel/busses/i2c-voodoo3.c (modified) (3 diffs)
-
kernel/chips/bt869.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/Makefile
r450 r461 57 57 # Uncomment the second line if you are a developer. This will enable many 58 58 # additional warnings at compile-time 59 WARN := 060 #WARN := 159 #WARN := 0 60 WARN := 1 61 61 62 62 # Uncomment the second line if you want to get (loads of) debug information. -
lm-sensors/trunk/kernel/busses/i2c-voodoo3.c
r457 r461 53 53 #endif 54 54 55 /* insmod parameters */56 57 55 static int voodoo3_init(void); 58 56 static int voodoo3_cleanup(void); … … 73 71 static int v3_num; 74 72 75 inline outlong(int off,unsigned int dat)73 inline void outlong(int off,unsigned int dat) 76 74 { 77 75 *((unsigned int*)(mem+off))=dat; … … 84 82 } 85 83 86 inline out(void)84 inline void out(void) 87 85 { 88 86 outlong(0x78,state); -
lm-sensors/trunk/kernel/chips/bt869.c
r460 r461 87 87 static void bt869_inc_use (struct i2c_client *client); 88 88 static void bt869_dec_use (struct i2c_client *client); 89 static u16 swap_bytes(u16 val);90 89 static int bt869_read_value(struct i2c_client *client, u8 reg); 91 90 static int bt869_write_value(struct i2c_client *client, u8 reg, u16 value); … … 156 155 int bt869_detect(struct i2c_adapter *adapter, int address, int kind) 157 156 { 158 int i,cur ,conf,hyst,os;157 int i,cur; 159 158 struct i2c_client *new_client; 160 159 struct bt869_data *data; … … 308 307 MOD_DEC_USE_COUNT; 309 308 #endif 310 }311 312 u16 swap_bytes(u16 val)313 {314 return (val >> 8) | (val << 8);315 309 } 316 310
