|
@@ -193,6 +193,8 @@ struct i2c_algorithm {
|
|
to NULL. If an adapter algorithm can do SMBus access, set
|
|
to NULL. If an adapter algorithm can do SMBus access, set
|
|
smbus_xfer. If set to NULL, the SMBus protocol is simulated
|
|
smbus_xfer. If set to NULL, the SMBus protocol is simulated
|
|
using common I2C messages */
|
|
using common I2C messages */
|
|
|
|
+ /* master_xfer should return the number of messages successfully
|
|
|
|
+ processed, or a negative value on error */
|
|
int (*master_xfer)(struct i2c_adapter *adap,struct i2c_msg *msgs,
|
|
int (*master_xfer)(struct i2c_adapter *adap,struct i2c_msg *msgs,
|
|
int num);
|
|
int num);
|
|
int (*smbus_xfer) (struct i2c_adapter *adap, u16 addr,
|
|
int (*smbus_xfer) (struct i2c_adapter *adap, u16 addr,
|