Skip to content

Commit 007ed79

Browse files
rddunlapgregkh
authored andcommitted
i3c: fix device.h kernel-doc warnings
Fix all kernel-doc warnings in <linux/i3c/device.h>: include/linux/i3c/device.h:27: warning: contents before sections include/linux/i3c/device.h:196: warning: Excess function parameter 'dev' description in 'dev_to_i3cdev' Fixes: fa838c8 ("i3c: move dev_to_i3cdev() to use container_of_const()") Fixes: 3a379bb ("i3c: Add core I3C infrastructure") Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Cc: Boris Brezillon <boris.brezillon@bootlin.com> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Alexandre Belloni <alexandre.belloni@bootlin.com> Cc: linux-i3c@lists.infradead.org Link: https://lore.kernel.org/r/20230213070324.1564-1-rdunlap@infradead.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent ade1229 commit 007ed79

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

include/linux/i3c/device.h

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,18 @@
1818
/**
1919
* enum i3c_error_code - I3C error codes
2020
*
21+
* @I3C_ERROR_UNKNOWN: unknown error, usually means the error is not I3C
22+
* related
23+
* @I3C_ERROR_M0: M0 error
24+
* @I3C_ERROR_M1: M1 error
25+
* @I3C_ERROR_M2: M2 error
26+
*
2127
* These are the standard error codes as defined by the I3C specification.
2228
* When -EIO is returned by the i3c_device_do_priv_xfers() or
2329
* i3c_device_send_hdr_cmds() one can check the error code in
2430
* &struct_i3c_priv_xfer.err or &struct i3c_hdr_cmd.err to get a better idea of
2531
* what went wrong.
2632
*
27-
* @I3C_ERROR_UNKNOWN: unknown error, usually means the error is not I3C
28-
* related
29-
* @I3C_ERROR_M0: M0 error
30-
* @I3C_ERROR_M1: M1 error
31-
* @I3C_ERROR_M2: M2 error
3233
*/
3334
enum i3c_error_code {
3435
I3C_ERROR_UNKNOWN = 0,
@@ -189,7 +190,7 @@ struct device *i3cdev_to_dev(struct i3c_device *i3cdev);
189190

190191
/**
191192
* dev_to_i3cdev() - Returns the I3C device containing @dev
192-
* @dev: device object
193+
* @__dev: device object
193194
*
194195
* Return: a pointer to an I3C device object.
195196
*/

0 commit comments

Comments
 (0)