Changeset 467
- Timestamp:
- 06/02/99 20:19:38 (10 years ago)
- Files:
-
- lm-sensors/trunk/TODO (modified) (1 diff)
- lm-sensors/trunk/i2c/MODIFICATIONS (modified) (1 diff)
- lm-sensors/trunk/i2c/i2c-core.c (modified) (2 diffs)
- lm-sensors/trunk/kernel/chips/adm1021.c (modified) (2 diffs)
- lm-sensors/trunk/kernel/chips/adm9240.c (modified) (1 diff)
- lm-sensors/trunk/kernel/chips/bt869.c (modified) (2 diffs)
- lm-sensors/trunk/kernel/chips/eeprom.c (modified) (2 diffs)
- lm-sensors/trunk/kernel/chips/gl518sm.c (modified) (1 diff)
- lm-sensors/trunk/kernel/chips/icspll.c (modified) (1 diff)
- lm-sensors/trunk/kernel/chips/lm75.c (modified) (2 diffs)
- lm-sensors/trunk/kernel/chips/lm78.c (modified) (2 diffs)
- lm-sensors/trunk/kernel/chips/lm80.c (modified) (1 diff)
- lm-sensors/trunk/kernel/chips/ltc1710.c (modified) (2 diffs)
- lm-sensors/trunk/kernel/chips/maxilife.c (modified) (1 diff)
- lm-sensors/trunk/kernel/chips/sis5595.c (modified) (2 diffs)
- lm-sensors/trunk/kernel/chips/w83781d.c (modified) (2 diffs)
- lm-sensors/trunk/kernel/include/compat.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
lm-sensors/trunk/TODO
r466 r467 4 4 ============== 5 5 6 * linux/Documentation/devices.txt lists i2c0, i2c1 etc. instead of i2c-0, i2c-1 7 * LM78 detection: Tom Webster has proven that the reset bit in the 8 id register can be one (strange!) 6 9 * Check for kernel 2.0.8 warnings 7 10 * Increase use count of adapter driver if directory of chip is entered lm-sensors/trunk/i2c/MODIFICATIONS
r430 r467 17 17 18 18 ! Fixed i2c_probe bug 19 20 ! Changed to init_MUTEX and a compatibility line in i2c-core.c 19 21 20 22 * Algo-bit now scans the bus before registering the adapter. lm-sensors/trunk/i2c/i2c-core.c
r346 r467 27 27 28 28 #include "i2c.h" 29 30 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,1)) 31 #define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 32 #endif 29 33 30 34 /* ----- global defines ---------------------------------------------------- */ … … 139 143 adap->lock = (spinlock_t)SPIN_LOCK_UNLOCKED; 140 144 #else 141 adap->lock = MUTEX;145 init_MUTEX(&adap->lock); 142 146 #endif 143 147 lm-sensors/trunk/kernel/chips/adm1021.c
r395 r467 27 27 #include "i2c-isa.h" 28 28 #include "version.h" 29 #include "compat.h" 29 30 30 31 /* Addresses to scan */ … … 270 271 new_client->id = i; 271 272 data->valid = 0; 272 data->update_lock = MUTEX;273 init_MUTEX(&data->update_lock); 273 274 274 275 /* Tell the I2C layer a new client has arrived */ lm-sensors/trunk/kernel/chips/adm9240.c
r401 r467 420 420 new_client->id = i; 421 421 data->valid = 0; 422 data->update_lock = MUTEX;422 init_MUTEX(&data->update_lock); 423 423 424 424 /* Tell the I2C layer a new client has arrived */ lm-sensors/trunk/kernel/chips/bt869.c
r463 r467 29 29 #include "i2c-isa.h" 30 30 #include "version.h" 31 #include "compat.h" 31 32 32 33 /* Addresses to scan */ … … 228 229 new_client->id = i; 229 230 data->valid = 0; 230 data->update_lock = MUTEX;231 init_MUTEX(&data->update_lock); 231 232 232 233 /* Tell the I2C layer a new client has arrived */ lm-sensors/trunk/kernel/chips/eeprom.c
r371 r467 27 27 #include "i2c-isa.h" 28 28 #include "version.h" 29 #include "compat.h" 29 30 30 31 /* Addresses to scan */ … … 225 226 new_client->id = i; 226 227 data->valid = 0; 227 data->update_lock = MUTEX;228 init_MUTEX(&data->update_lock); 228 229 229 230 /* Tell the I2C layer a new client has arrived */ lm-sensors/trunk/kernel/chips/gl518sm.c
r403 r467 349 349 new_client->id = i; 350 350 data->valid = 0; 351 data->update_lock = MUTEX;351 init_MUTEX(&data->update_lock); 352 352 353 353 /* Tell the I2C layer a new client has arrived */ lm-sensors/trunk/kernel/chips/icspll.c
r344 r467 177 177 strcpy(new_client->name,"ICSPLL chip"); 178 178 data->valid = 0; 179 data->update_lock = MUTEX;179 init_MUTEX(&data->update_lock); 180 180 /* fill data structure so unknown registers are 0xFF */ 181 181 data->data[0] = ICSPLL_SIZE; lm-sensors/trunk/kernel/chips/lm75.c
r445 r467 26 26 #include "i2c-isa.h" 27 27 #include "version.h" 28 #include "compat.h" 28 29 29 30 /* Addresses to scan */ … … 205 206 new_client->id = i; 206 207 data->valid = 0; 207 data->update_lock = MUTEX;208 init_MUTEX(&data->update_lock); 208 209 209 210 /* Tell the I2C layer a new client has arrived */ lm-sensors/trunk/kernel/chips/lm78.c
r381 r467 358 358 new_client->addr = 0; 359 359 ((struct isa_client *) new_client)->isa_addr = address; 360 data->lock = MUTEX;360 init_MUTEX(&data->lock); 361 361 } else { 362 362 data = (struct lm78_data *) (((struct i2c_client *) new_client) + 1); … … 429 429 new_client->id = i; 430 430 data->valid = 0; 431 data->update_lock = MUTEX;431 init_MUTEX(&data->update_lock); 432 432 433 433 /* Tell the I2C layer a new client has arrived */ lm-sensors/trunk/kernel/chips/lm80.c
r382 r467 358 358 new_client->id = i; 359 359 data->valid = 0; 360 data->update_lock = MUTEX;360 init_MUTEX(&data->update_lock); 361 361 362 362 /* Tell the I2C layer a new client has arrived */ lm-sensors/trunk/kernel/chips/ltc1710.c
r372 r467 49 49 #include "i2c-isa.h" 50 50 #include "version.h" 51 #include "compat.h" 51 52 52 53 /* Addresses to scan */ … … 207 208 new_client->id = i; 208 209 data->valid = 0; 209 data->update_lock = MUTEX;210 init_MUTEX(&data->update_lock); 210 211 211 212 /* Tell the I2C layer a new client has arrived */ lm-sensors/trunk/kernel/chips/maxilife.c
r382 r467 416 416 data = new_client->data; 417 417 data->valid = 0; 418 data->lock = MUTEX;419 data->update_lock = MUTEX;418 init_MUTEX(&data->lock); 419 init_MUTEX(&data->update_lock); 420 420 return 0; 421 421 } lm-sensors/trunk/kernel/chips/sis5595.c
r382 r467 359 359 new_client->addr = 0; 360 360 ((struct isa_client *) new_client)->isa_addr = address; 361 data->lock = MUTEX;361 init_MUTEX(&data->lock); 362 362 new_client->data = data; 363 363 new_client->adapter = adapter; … … 403 403 new_client->id = i; 404 404 data->valid = 0; 405 data->update_lock = MUTEX;405 init_MUTEX(&data->update_lock); 406 406 407 407 /* Tell the I2C layer a new client has arrived */ lm-sensors/trunk/kernel/chips/w83781d.c
r466 r467 694 694 new_client->addr = address; 695 695 } 696 data->lock = MUTEX;696 init_MUTEX(&data->lock); 697 697 new_client->data = data; 698 698 new_client->adapter = adapter; … … 778 778 new_client->id = i; 779 779 data->valid = 0; 780 data->update_lock = MUTEX;780 init_MUTEX(&data->update_lock); 781 781 782 782 /* Tell the I2C layer a new client has arrived */ lm-sensors/trunk/kernel/include/compat.h
r442 r467 90 90 #endif 91 91 92 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,1)) 93 #define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 94 #endif 95 92 96 #endif /* SENSORS_COMPAT_H */
