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>
This commit is contained in:
Родитель
d6e7497eaf
Коммит
e138c592b5
|
@ -83,14 +83,14 @@ struct video_device
|
||||||
#define to_video_device(cd) container_of(cd, struct video_device, dev)
|
#define to_video_device(cd) container_of(cd, struct video_device, dev)
|
||||||
|
|
||||||
/* Version 2 functions */
|
/* Version 2 functions */
|
||||||
extern int video_register_device(struct video_device *vfd, int type, int nr);
|
int __must_check video_register_device(struct video_device *vfd, int type, int nr);
|
||||||
int video_register_device_index(struct video_device *vfd, int type, int nr,
|
int __must_check video_register_device_index(struct video_device *vfd, int type, int nr,
|
||||||
int index);
|
int index);
|
||||||
void video_unregister_device(struct video_device *);
|
void video_unregister_device(struct video_device *);
|
||||||
|
|
||||||
/* helper functions to alloc / release struct video_device, the
|
/* helper functions to alloc / release struct video_device, the
|
||||||
later can be used for video_device->release() */
|
later can be used for video_device->release() */
|
||||||
struct video_device *video_device_alloc(void);
|
struct video_device * __must_check video_device_alloc(void);
|
||||||
/* this release function frees the vfd pointer */
|
/* this release function frees the vfd pointer */
|
||||||
void video_device_release(struct video_device *vfd);
|
void video_device_release(struct video_device *vfd);
|
||||||
/* this release function does nothing, use when the video_device is a
|
/* this release function does nothing, use when the video_device is a
|
||||||
|
|
Загрузка…
Ссылка в новой задаче