aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2008-08-23 05:38:11 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-10-12 07:36:54 -0400
commite138c592b50370621653fd962b2bc3f4e25dfe78 (patch)
treed2d199ca57189f1e51958cecca75968fd35f9b29 /include
parentd6e7497eaf9889d39a070f60309a9bcea1fd29f6 (diff)
V4L/DVB (8785): v4l2: add __must_check to v4l2_dev.h
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/media/v4l2-dev.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/media/v4l2-dev.h b/include/media/v4l2-dev.h
index 30855077be44..23df00919ae8 100644
--- a/include/media/v4l2-dev.h
+++ b/include/media/v4l2-dev.h
@@ -83,14 +83,14 @@ struct video_device
83#define to_video_device(cd) container_of(cd, struct video_device, dev) 83#define to_video_device(cd) container_of(cd, struct video_device, dev)
84 84
85/* Version 2 functions */ 85/* Version 2 functions */
86extern int video_register_device(struct video_device *vfd, int type, int nr); 86int __must_check video_register_device(struct video_device *vfd, int type, int nr);
87int video_register_device_index(struct video_device *vfd, int type, int nr, 87int __must_check video_register_device_index(struct video_device *vfd, int type, int nr,
88 int index); 88 int index);
89void video_unregister_device(struct video_device *); 89void video_unregister_device(struct video_device *);
90 90
91/* helper functions to alloc / release struct video_device, the 91/* helper functions to alloc / release struct video_device, the
92 later can be used for video_device->release() */ 92 later can be used for video_device->release() */
93struct video_device *video_device_alloc(void); 93struct video_device * __must_check video_device_alloc(void);
94/* this release function frees the vfd pointer */ 94/* this release function frees the vfd pointer */
95void video_device_release(struct video_device *vfd); 95void video_device_release(struct video_device *vfd);
96/* this release function does nothing, use when the video_device is a 96/* this release function does nothing, use when the video_device is a