Skip to content

Commit 3e0f867

Browse files
Lee Joneswsakernel
authored andcommitted
i2c: busses: i2c-pnx: Provide descriptions for 'alg_data' data structure
Fixes the following W=1 kernel build warning(s): drivers/i2c/busses/i2c-pnx.c:147: warning: Function parameter or member 'alg_data' not described in 'i2c_pnx_start' drivers/i2c/busses/i2c-pnx.c:147: warning: Excess function parameter 'adap' description in 'i2c_pnx_start' drivers/i2c/busses/i2c-pnx.c:202: warning: Function parameter or member 'alg_data' not described in 'i2c_pnx_stop' drivers/i2c/busses/i2c-pnx.c:202: warning: Excess function parameter 'adap' description in 'i2c_pnx_stop' drivers/i2c/busses/i2c-pnx.c:231: warning: Function parameter or member 'alg_data' not described in 'i2c_pnx_master_xmit' drivers/i2c/busses/i2c-pnx.c:231: warning: Excess function parameter 'adap' description in 'i2c_pnx_master_xmit' drivers/i2c/busses/i2c-pnx.c:301: warning: Function parameter or member 'alg_data' not described in 'i2c_pnx_master_rcv' drivers/i2c/busses/i2c-pnx.c:301: warning: Excess function parameter 'adap' description in 'i2c_pnx_master_rcv' Signed-off-by: Lee Jones <[email protected]> Acked-by: Vladimir Zapolskiy <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent d4c73d4 commit 3e0f867

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/i2c/busses/i2c-pnx.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ static inline void i2c_pnx_arm_timer(struct i2c_pnx_algo_data *alg_data)
138138
/**
139139
* i2c_pnx_start - start a device
140140
* @slave_addr: slave address
141-
* @adap: pointer to adapter structure
141+
* @alg_data: pointer to local driver data structure
142142
*
143143
* Generate a START signal in the desired mode.
144144
*/
@@ -194,7 +194,7 @@ static int i2c_pnx_start(unsigned char slave_addr,
194194

195195
/**
196196
* i2c_pnx_stop - stop a device
197-
* @adap: pointer to I2C adapter structure
197+
* @alg_data: pointer to local driver data structure
198198
*
199199
* Generate a STOP signal to terminate the master transaction.
200200
*/
@@ -223,7 +223,7 @@ static void i2c_pnx_stop(struct i2c_pnx_algo_data *alg_data)
223223

224224
/**
225225
* i2c_pnx_master_xmit - transmit data to slave
226-
* @adap: pointer to I2C adapter structure
226+
* @alg_data: pointer to local driver data structure
227227
*
228228
* Sends one byte of data to the slave
229229
*/
@@ -293,7 +293,7 @@ static int i2c_pnx_master_xmit(struct i2c_pnx_algo_data *alg_data)
293293

294294
/**
295295
* i2c_pnx_master_rcv - receive data from slave
296-
* @adap: pointer to I2C adapter structure
296+
* @alg_data: pointer to local driver data structure
297297
*
298298
* Reads one byte data from the slave
299299
*/

0 commit comments

Comments
 (0)