diff options
author | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-09-04 21:34:19 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2016-01-11 17:18:59 +0300 |
commit | 5e5387df0491679fb1210b231173c5279061e9c4 (patch) | |
tree | d79959a4b7999945e2483a9a3a1d0d559fb49581 /include/media/media-entity.h | |
parent | 0d3ab8410dcb60aef2104231ba817037b3ba73bd (diff) | |
download | linux-5e5387df0491679fb1210b231173c5279061e9c4.tar.xz |
[media] media-entity: enforce check of interface and links creation
Drivers should check if interfaces and interface links were
created. Add a must_check for them.
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.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/include/media/media-entity.h b/include/media/media-entity.h index 3b591d72c703..7128d3b0b848 100644 --- a/include/media/media-entity.h +++ b/include/media/media-entity.h @@ -373,14 +373,16 @@ __must_check int media_entity_pipeline_start(struct media_entity *entity, struct media_pipeline *pipe); void media_entity_pipeline_stop(struct media_entity *entity); -struct media_intf_devnode *media_devnode_create(struct media_device *mdev, - u32 type, u32 flags, - u32 major, u32 minor, - gfp_t gfp_flags); +struct media_intf_devnode * +__must_check media_devnode_create(struct media_device *mdev, + u32 type, u32 flags, + u32 major, u32 minor, + gfp_t gfp_flags); void media_devnode_remove(struct media_intf_devnode *devnode); -struct media_link *media_create_intf_link(struct media_entity *entity, - struct media_interface *intf, - u32 flags); +struct media_link * +__must_check media_create_intf_link(struct media_entity *entity, + struct media_interface *intf, + u32 flags); void __media_remove_intf_link(struct media_link *link); void media_remove_intf_link(struct media_link *link); void __media_remove_intf_links(struct media_interface *intf); |