i2c: apply coding style for struct i2c_adapter

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
This commit is contained in:
Wolfram Sang
2019-03-02 14:47:29 +01:00
committed by Wolfram Sang
parent 265bd824e1
commit f6ac28d616

View File

@ -517,20 +517,23 @@ i2c_register_board_info(int busnum, struct i2c_board_info const *info,
* Documentation file Documentation/i2c/fault-codes. * Documentation file Documentation/i2c/fault-codes.
*/ */
struct i2c_algorithm { struct i2c_algorithm {
/* If an adapter algorithm can't do I2C-level access, set master_xfer /*
to NULL. If an adapter algorithm can do SMBus access, set * If an adapter algorithm can't do I2C-level access, set master_xfer
smbus_xfer. If set to NULL, the SMBus protocol is simulated * to NULL. If an adapter algorithm can do SMBus access, set
using common I2C messages */ * smbus_xfer. If set to NULL, the SMBus protocol is simulated
/* master_xfer should return the number of messages successfully * using common I2C messages.
processed, or a negative value on error */ *
* 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,
unsigned short flags, char read_write, unsigned short flags, char read_write,
u8 command, int size, union i2c_smbus_data *data); u8 command, int size, union i2c_smbus_data *data);
/* To determine what the adapter supports */ /* To determine what the adapter supports */
u32 (*functionality) (struct i2c_adapter *); u32 (*functionality)(struct i2c_adapter *adap);
#if IS_ENABLED(CONFIG_I2C_SLAVE) #if IS_ENABLED(CONFIG_I2C_SLAVE)
int (*reg_slave)(struct i2c_client *client); int (*reg_slave)(struct i2c_client *client);