Skip to contentSkip to conversation

media-entity.h: Correct KernelDoc of media_entity_enum_empty()

PATCH New Liu Ying 1 participant 3 messages Aug 11, 2016

Subsystems (2)
lore
Share & tools
lore
author
#1 lore raw

PATCH 2/3 media-entity.h: remove redundant macro definition for gobj_to_link()

In reply to Liu Ying

The macro gobj_to_link() is defined twice in media-entity.h. Let's remove one.

---
 include/media/media-entity.h | 3 ---
 1 file changed, 3 deletions(-)
include/media/media-entity.h +0 -3
index 48b4b6b..fa874ad 100644
@@ -520,9 +520,6 @@ static inline bool media_entity_enum_intersects(
 #define gobj_to_link(gobj) \
 		container_of(gobj, struct media_link, graph_obj)
 
-#define gobj_to_link(gobj) \
-		container_of(gobj, struct media_link, graph_obj)
-
 #define gobj_to_pad(gobj) \
 		container_of(gobj, struct media_pad, graph_obj)
 
Signature · 1 line
2.7.4

Liu Ying

author
#0 lore raw

PATCH 1/3 media-entity.h: Correct KernelDoc of media_entity_enum_empty()

The function media_entity_enum_empty() returns true when the bitmap of the input parameter media entity enumeration is empty instead of marked. This patch corrects the return value description of the function.

---
 include/media/media-entity.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/media/media-entity.h +1 -1
index 09b03c1..48b4b6b 100644
@@ -486,7 +486,7 @@ media_entity_enum_test_and_set(struct media_entity_enum *ent_enum,
  *
  * @ent_enum: Entity enumeration
  *
- * Returns true if the entity was marked.
+ * Returns true if the entity was empty.
  */
 static inline bool media_entity_enum_empty(struct media_entity_enum *ent_enum)
 {
Signature · 1 line
2.7.4
author
#2 lore raw

PATCH 3/3 media-entity.h: remove redundant macro definition for gobj_to_pad()

The macro gobj_to_pad() is defined twice in media-entity.h. Let's remove one.

---
 include/media/media-entity.h | 3 ---
 1 file changed, 3 deletions(-)
include/media/media-entity.h +0 -3
index fa874ad..7bf6885 100644
@@ -520,9 +520,6 @@ static inline bool media_entity_enum_intersects(
 #define gobj_to_link(gobj) \
 		container_of(gobj, struct media_link, graph_obj)
 
-#define gobj_to_pad(gobj) \
-		container_of(gobj, struct media_pad, graph_obj)
-
 #define gobj_to_intf(gobj) \
 		container_of(gobj, struct media_interface, graph_obj)
 
Signature · 1 line
2.7.4