Skip to content

Commit be5b928

Browse files
author
Wolfram Sang
committed
i2c: reformat comments around i2c_smbus_xfer_emulated()
Use Kernel coding style for better readability. Signed-off-by: Wolfram Sang <[email protected]> Reviewed-by: Peter Rosin <[email protected]>
1 parent 84cb55c commit be5b928

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

drivers/i2c/i2c-core-smbus.c

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -308,17 +308,21 @@ static void i2c_smbus_try_get_dmabuf(struct i2c_msg *msg, u8 init_val)
308308
msg->buf[0] = init_val;
309309
}
310310

311-
/* Simulate a SMBus command using the i2c protocol
312-
No checking of parameters is done! */
311+
/*
312+
* Simulate a SMBus command using the I2C protocol.
313+
* No checking of parameters is done!
314+
*/
313315
static s32 i2c_smbus_xfer_emulated(struct i2c_adapter *adapter, u16 addr,
314316
unsigned short flags,
315317
char read_write, u8 command, int size,
316318
union i2c_smbus_data *data)
317319
{
318-
/* So we need to generate a series of msgs. In the case of writing, we
319-
need to use only one message; when reading, we need two. We initialize
320-
most things with sane defaults, to keep the code below somewhat
321-
simpler. */
320+
/*
321+
* So we need to generate a series of msgs. In the case of writing, we
322+
* need to use only one message; when reading, we need two. We
323+
* initialize most things with sane defaults, to keep the code below
324+
* somewhat simpler.
325+
*/
322326
unsigned char msgbuf0[I2C_SMBUS_BLOCK_MAX+3];
323327
unsigned char msgbuf1[I2C_SMBUS_BLOCK_MAX+2];
324328
int num = read_write == I2C_SMBUS_READ ? 2 : 1;

0 commit comments

Comments
 (0)