[media] media-entity.h: remove redundant macro definition for gobj_to_pad()
authorLiu Ying <gnuiyl@gmail.com>
Thu, 11 Aug 2016 05:10:11 +0000 (02:10 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 24 Aug 2016 19:43:49 +0000 (16:43 -0300)
The macro gobj_to_pad() is defined twice in media-entity.h.
Let's remove one.

Signed-off-by: Liu Ying <gnuiyl@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
include/media/media-entity.h

index fa874ad4870eb5c2ae739d779cb312df9f6fb5c4..7bf6885dd37f2903df70cca3d92becdead2acbc9 100644 (file)
@@ -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)