Changeset 3390
- Timestamp:
- 09/27/99 16:21:17 (9 years ago)
- Files:
-
- i2c/trunk/doc/writing-clients (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
i2c/trunk/doc/writing-clients
r3389 r3390 371 371 markers. 372 372 373 This function should only return an error (any value != 0) if there is 374 some reason why no more detection should be done anymore. If the 375 detection just fails for this address, return 0. 376 373 377 /* Unique ID allocation */ 374 378 static int foo_id = 0; … … 385 389 /* Let's see whether this adapter can support what we need. 386 390 Please substitute the things you need here! */ 387 if (! i2c_check_functionality(adapter,I2C_FUNC_SMBUS_ READ_WORD|388 I2C_FUNC_SMBUS_WRITE_ WORD))391 if (! i2c_check_functionality(adapter,I2C_FUNC_SMBUS_WORD_DATA | 392 I2C_FUNC_SMBUS_WRITE_BYTE)) 389 393 goto ERROR0; 390 394
