Skip to contentSkip to conversation

media: media-entity.h: Fix documentation for media_create_intf_link

PATCH In review Ian Jamison 3 participants 3 messages Apr 8, 2022 – Apr 10, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 media: media-entity.h: Fix documentation for media_create_intf_link

The documentation comment was inserted between the return type and the function name. Reunite the lines.

Fixes db7ee32aa185 ("[media] media-device.h: Improve documentation and update it")
---
 include/media/media-entity.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/media/media-entity.h +1 -1
index 742918962d46..9bc9a55df71e 100644
@@ -1030,7 +1030,6 @@ __must_check media_devnode_create(struct media_device *mdev,
  * removed.
  */
 void media_devnode_remove(struct media_intf_devnode *devnode);
-struct media_link *
 
 /**
  * media_create_intf_link() - creates a link between an entity and an interface
@@ -1061,6 +1060,7 @@ struct media_link *
  *    the interface and media_device_register_entity() should be called for the
  *    interface that will be part of the link.
  */
+struct media_link *
 __must_check media_create_intf_link(struct media_entity *entity,
 				    struct media_interface *intf,
 				    u32 flags);
Signature · 1 line
2.35.1
Reviewed-by on v1 1/1
#1 lore raw

Quoting Ian Jamison (2022-04-08 18:53:45)

Quoted 14 lines

The documentation comment was inserted between the return type and the function name. Reunite the lines.

Fixes db7ee32aa185 ("[media] media-device.h: Improve documentation and update it")
---
 include/media/media-entity.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/media/media-entity.h +0 -0
index 742918962d46..9bc9a55df71e 100644

include/media/media-entity.h __must_check media_devnode_create(struct media_device *mdev, · line 1033

Quoted 4 lines
include/media/media-entity.h +0 -1
@@ -1030,7 +1030,6 @@ __must_check media_devnode_create(struct media_device *mdev,
  * removed.
  */
 void media_devnode_remove(struct media_intf_devnode *devnode);
-struct media_link *

Eeep. I guess that was some sort of merge conflict resolution that didn't quite get it right sometime.

But definitely a good fix.

Quoted 14 lines
include/media/media-entity.h +1 -0
 /**
  * media_create_intf_link() - creates a link between an entity and an interface
@@ -1061,6 +1060,7 @@ struct media_link *
  *    the interface and media_device_register_entity() should be called for the
  *    interface that will be part of the link.
  */
+struct media_link *
 __must_check media_create_intf_link(struct media_entity *entity,
                                    struct media_interface *intf,
                                    u32 flags);
Signature · 1 line
2.35.1
maintainer Reviewed-by
#2 lore raw
Quoted 23 lines · Kieran Bingham

Quoting Ian Jamison (2022-04-08 18:53:45)

Quoted 14 lines

The documentation comment was inserted between the return type and the function name. Reunite the lines.

Fixes db7ee32aa185 ("[media] media-device.h: Improve documentation and update it")
---
 include/media/media-entity.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/media/media-entity.h +0 -0
index 742918962d46..9bc9a55df71e 100644

include/media/media-entity.h __must_check media_devnode_create(struct media_device *mdev, · line 1033

Quoted 4 lines
include/media/media-entity.h +0 -1
@@ -1030,7 +1030,6 @@ __must_check media_devnode_create(struct media_device *mdev,
  * removed.
  */
 void media_devnode_remove(struct media_intf_devnode *devnode);
-struct media_link *

Eeep. I guess that was some sort of merge conflict resolution that didn't quite get it right sometime.

Quoted 3 lines

But definitely a good fix.

Indeed.

Quoted 10 lines
Quoted 10 lines
include/media/media-entity.h +1 -0
 /**
  * media_create_intf_link() - creates a link between an entity and an interface
@@ -1061,6 +1060,7 @@ struct media_link *
  *    the interface and media_device_register_entity() should be called for the
  *    interface that will be part of the link.
  */
+struct media_link *
 __must_check media_create_intf_link(struct media_entity *entity,
                                    struct media_interface *intf,
                                    u32 flags);
Signature · 3 lines
Regards,

Laurent Pinchart