Changeset 3390

Show
Ignore:
Timestamp:
09/27/99 16:21:17 (9 years ago)
Author:
frodo
Message:

Documentation update for new functionality stuff

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • i2c/trunk/doc/writing-clients

    r3389 r3390  
    371371markers.  
    372372 
     373This function should only return an error (any value != 0) if there is 
     374some reason why no more detection should be done anymore. If the 
     375detection just fails for this address, return 0. 
     376 
    373377  /* Unique ID allocation */ 
    374378  static int foo_id = 0; 
     
    385389    /* Let's see whether this adapter can support what we need. 
    386390       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)) 
    389393       goto ERROR0; 
    390394