Skip to content

Commit 7202745

Browse files
Aryan SrivastavaAndi Shyti
authored andcommitted
i2c: octeon: fix return commenting
Kernel-docs require a ':' to signify the return behaviour of a function with within the comment. Many functions in this file were missing ':' after the "Returns" line, resulting in kernel-doc warnings. Add the ':' to satisfy kernel-doc requirements. Signed-off-by: Aryan Srivastava <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Andi Shyti <[email protected]>
1 parent d50f2f5 commit 7202745

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

drivers/i2c/busses/i2c-octeon-core.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ static bool octeon_i2c_test_iflg(struct octeon_i2c *i2c)
4545
* octeon_i2c_wait - wait for the IFLG to be set
4646
* @i2c: The struct octeon_i2c
4747
*
48-
* Returns 0 on success, otherwise a negative errno.
48+
* Returns: 0 on success, otherwise a negative errno.
4949
*/
5050
static int octeon_i2c_wait(struct octeon_i2c *i2c)
5151
{
@@ -139,7 +139,7 @@ static void octeon_i2c_hlc_disable(struct octeon_i2c *i2c)
139139
* octeon_i2c_hlc_wait - wait for an HLC operation to complete
140140
* @i2c: The struct octeon_i2c
141141
*
142-
* Returns 0 on success, otherwise -ETIMEDOUT.
142+
* Returns: 0 on success, otherwise -ETIMEDOUT.
143143
*/
144144
static int octeon_i2c_hlc_wait(struct octeon_i2c *i2c)
145145
{
@@ -273,7 +273,7 @@ static int octeon_i2c_recovery(struct octeon_i2c *i2c)
273273
* octeon_i2c_start - send START to the bus
274274
* @i2c: The struct octeon_i2c
275275
*
276-
* Returns 0 on success, otherwise a negative errno.
276+
* Returns: 0 on success, otherwise a negative errno.
277277
*/
278278
static int octeon_i2c_start(struct octeon_i2c *i2c)
279279
{
@@ -314,7 +314,7 @@ static void octeon_i2c_stop(struct octeon_i2c *i2c)
314314
*
315315
* The address is sent over the bus, then the data is read.
316316
*
317-
* Returns 0 on success, otherwise a negative errno.
317+
* Returns: 0 on success, otherwise a negative errno.
318318
*/
319319
static int octeon_i2c_read(struct octeon_i2c *i2c, int target,
320320
u8 *data, u16 *rlength, bool recv_len)
@@ -382,7 +382,7 @@ static int octeon_i2c_read(struct octeon_i2c *i2c, int target,
382382
*
383383
* The address is sent over the bus, then the data.
384384
*
385-
* Returns 0 on success, otherwise a negative errno.
385+
* Returns: 0 on success, otherwise a negative errno.
386386
*/
387387
static int octeon_i2c_write(struct octeon_i2c *i2c, int target,
388388
const u8 *data, int length)
@@ -625,7 +625,7 @@ static int octeon_i2c_hlc_comp_write(struct octeon_i2c *i2c, struct i2c_msg *msg
625625
* @msgs: Pointer to the messages to be processed
626626
* @num: Length of the MSGS array
627627
*
628-
* Returns the number of messages processed, or a negative errno on failure.
628+
* Returns: the number of messages processed, or a negative errno on failure.
629629
*/
630630
int octeon_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num)
631631
{

0 commit comments

Comments
 (0)