Changeset 3530
- Timestamp:
- 02/06/01 21:01:52 (12 years ago)
- Location:
- i2c/trunk
- Files:
-
- 3 modified
-
doc/writing-clients (modified) (1 diff)
-
kernel/i2c-core.c (modified) (1 diff)
-
kernel/i2c.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
i2c/trunk/doc/writing-clients
r3495 r3530 34 34 /* command */ &foo_command, /* May be NULL */ 35 35 /* inc_use */ &foo_inc_use, /* May be NULL */ 36 /* dec_use */ &foo_de v_use /* May be NULL */36 /* dec_use */ &foo_dec_use /* May be NULL */ 37 37 } 38 38 -
i2c/trunk/kernel/i2c-core.c
r3513 r3530 249 249 if ((res=client->driver->detach_client(client))) { 250 250 printk("i2c-core.o: adapter %s not " 251 "unregiste d, because client at "251 "unregistered, because client at " 252 252 "address %02x can't be detached. ", 253 253 adap->name, client->addr); -
i2c/trunk/kernel/i2c.h
r3527 r3530 203 203 unsigned int id; 204 204 205 /* If a adapter algorithm can't to I2C-level access, set master_xfer205 /* If an adapter algorithm can't to I2C-level access, set master_xfer 206 206 to NULL. If an adapter algorithm can do SMBus access, set 207 207 smbus_xfer. If set to NULL, the SMBus protocol is simulated … … 345 345 extern int i2c_check_addr (struct i2c_adapter *adapter, int addr); 346 346 347 /* Detect function. It it terates over all possible addresses itself.347 /* Detect function. It iterates over all possible addresses itself. 348 348 * It will only call found_proc if some client is connected at the 349 349 * specific address (unless a 'force' matched); … … 361 361 362 362 /* This call returns a unique low identifier for each registered adapter, 363 * or -1 if the adapter was not regis itered.363 * or -1 if the adapter was not registered. 364 364 */ 365 365 extern int i2c_adapter_id(struct i2c_adapter *adap); … … 455 455 */ 456 456 /* -> bit-adapter specific ioctls */ 457 #define I2C_RETRIES 0x0701 /* number times a device adress should */ 458 /* be polled when not acknowledging */ 457 #define I2C_RETRIES 0x0701 /* number of times a device adress */ 458 /* should be polled when not */ 459 /* acknowledging */ 459 460 #define I2C_TIMEOUT 0x0702 /* set timeout - call with int */ 460 461
