Skip to content

Commit a2ba553

Browse files
aborzeszwesteri
authored andcommitted
thunderbolt: Update usb4_port.c function documentation
Make usb4_port.c function documentation compliant with current kernel-doc standards. No functional changes. Signed-off-by: Alan Borzeszkowski <alan.borzeszkowski@linux.intel.com> Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
1 parent 9a5abaf commit a2ba553

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

drivers/thunderbolt/usb4_port.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,9 @@ const struct device_type usb4_port_device_type = {
296296
* usb4_port_device_add() - Add USB4 port device
297297
* @port: Lane 0 adapter port to add the USB4 port
298298
*
299-
* Creates and registers a USB4 port device for @port. Returns the new
300-
* USB4 port device pointer or ERR_PTR() in case of error.
299+
* Creates and registers a USB4 port device for @port.
300+
*
301+
* Return: Pointer to &struct usb4_port or ERR_PTR() in case of an error.
301302
*/
302303
struct usb4_port *usb4_port_device_add(struct tb_port *port)
303304
{
@@ -356,6 +357,8 @@ void usb4_port_device_remove(struct usb4_port *usb4)
356357
* @usb4: USB4 port device
357358
*
358359
* Used to resume USB4 port device after sleep state.
360+
*
361+
* Return: %0 on success, negative errno otherwise.
359362
*/
360363
int usb4_port_device_resume(struct usb4_port *usb4)
361364
{

0 commit comments

Comments
 (0)