Skip to content

Commit f9f193f

Browse files
Lee Joneswsakernel
authored andcommitted
i2c: busses: i2c-eg20t: Fix 'bad line' issue and provide description for 'msgs' param
Fixes the following W=1 kernel build warning(s): drivers/i2c/busses/i2c-eg20t.c:151: warning: bad line: PCH i2c controller drivers/i2c/busses/i2c-eg20t.c:369: warning: Function parameter or member 'msgs' not described in 'pch_i2c_writebytes' Signed-off-by: Lee Jones <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent b4c760d commit f9f193f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/i2c/busses/i2c-eg20t.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ struct i2c_algo_pch_data {
148148

149149
/**
150150
* struct adapter_info - This structure holds the adapter information for the
151-
PCH i2c controller
151+
* PCH i2c controller
152152
* @pch_data: stores a list of i2c_algo_pch_data
153153
* @pch_i2c_suspended: specifies whether the system is suspended or not
154154
* perhaps with more lines and words.
@@ -358,6 +358,7 @@ static void pch_i2c_repstart(struct i2c_algo_pch_data *adap)
358358
/**
359359
* pch_i2c_writebytes() - write data to I2C bus in normal mode
360360
* @i2c_adap: Pointer to the struct i2c_adapter.
361+
* @msgs: Pointer to the i2c message structure.
361362
* @last: specifies whether last message or not.
362363
* In the case of compound mode it will be 1 for last message,
363364
* otherwise 0.

0 commit comments

Comments
 (0)