Skip to content

Commit f6ac28d

Browse files
Wolfram SangWolfram Sang
authored andcommitted
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>
1 parent 265bd82 commit f6ac28d

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

include/linux/i2c.h

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -517,20 +517,23 @@ i2c_register_board_info(int busnum, struct i2c_board_info const *info,
517517
* Documentation file Documentation/i2c/fault-codes.
518518
*/
519519
struct i2c_algorithm {
520-
/* If an adapter algorithm can't do I2C-level access, set master_xfer
521-
to NULL. If an adapter algorithm can do SMBus access, set
522-
smbus_xfer. If set to NULL, the SMBus protocol is simulated
523-
using common I2C messages */
524-
/* master_xfer should return the number of messages successfully
525-
processed, or a negative value on error */
520+
/*
521+
* If an adapter algorithm can't do I2C-level access, set master_xfer
522+
* to NULL. If an adapter algorithm can do SMBus access, set
523+
* smbus_xfer. If set to NULL, the SMBus protocol is simulated
524+
* using common I2C messages.
525+
*
526+
* master_xfer should return the number of messages successfully
527+
* processed, or a negative value on error
528+
*/
526529
int (*master_xfer)(struct i2c_adapter *adap, struct i2c_msg *msgs,
527530
int num);
528-
int (*smbus_xfer) (struct i2c_adapter *adap, u16 addr,
529-
unsigned short flags, char read_write,
530-
u8 command, int size, union i2c_smbus_data *data);
531+
int (*smbus_xfer)(struct i2c_adapter *adap, u16 addr,
532+
unsigned short flags, char read_write,
533+
u8 command, int size, union i2c_smbus_data *data);
531534

532535
/* To determine what the adapter supports */
533-
u32 (*functionality) (struct i2c_adapter *);
536+
u32 (*functionality)(struct i2c_adapter *adap);
534537

535538
#if IS_ENABLED(CONFIG_I2C_SLAVE)
536539
int (*reg_slave)(struct i2c_client *client);

0 commit comments

Comments
 (0)