summaryrefslogtreecommitdiff
path: root/include/media/media-entity.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-09-04 22:08:24 +0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2016-01-11 17:19:00 +0300
commit77328043d9e6feb12e53a4fc5485cf664d2878e4 (patch)
tree407114c9e4ce6ecb912b3f421ab61d1d19223421 /include/media/media-entity.h
parent4e26f3abafa9d0f635e105c8b9021f3b5bae6702 (diff)
downloadlinux-77328043d9e6feb12e53a4fc5485cf664d2878e4.tar.xz
[media] media-entity: must check media_create_pad_link()
Drivers should check if media_create_pad_link() actually worked. Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'include/media/media-entity.h')
-rw-r--r--include/media/media-entity.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/media/media-entity.h b/include/media/media-entity.h
index 7128d3b0b848..0c7390d2edae 100644
--- a/include/media/media-entity.h
+++ b/include/media/media-entity.h
@@ -351,8 +351,9 @@ int media_entity_init(struct media_entity *entity, u16 num_pads,
struct media_pad *pads);
void media_entity_cleanup(struct media_entity *entity);
-int media_create_pad_link(struct media_entity *source, u16 source_pad,
- struct media_entity *sink, u16 sink_pad, u32 flags);
+__must_check int media_create_pad_link(struct media_entity *source,
+ u16 source_pad, struct media_entity *sink,
+ u16 sink_pad, u32 flags);
void __media_entity_remove_links(struct media_entity *entity);
void media_entity_remove_links(struct media_entity *entity);