diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2009-09-06 13:54:00 +0300 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2009-09-06 13:54:00 +0300 |
commit | 856378592a1b9be61e28092caf5e87446bae4694 (patch) | |
tree | e9d775f64e0893ce1c89aa61e59e0e3ca8a4cde8 /linux/include/media | |
parent | 026fbaf9a959eb5b7770b075a604999f704640cb (diff) | |
download | mediapointer-dvb-s2-856378592a1b9be61e28092caf5e87446bae4694.tar.gz mediapointer-dvb-s2-856378592a1b9be61e28092caf5e87446bae4694.tar.bz2 |
v4l: warn when desired devnodenr is in use & add _no_warn function
From: Hans Verkuil <hverkuil@xs4all.nl>
Warn when the desired device node number is already in use, except when
the new video_register_device_no_warn function is called since in some
use-cases that warning is not relevant.
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/include/media')
-rw-r--r-- | linux/include/media/v4l2-dev.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/linux/include/media/v4l2-dev.h b/linux/include/media/v4l2-dev.h index 1cae97561..f813ae9c0 100644 --- a/linux/include/media/v4l2-dev.h +++ b/linux/include/media/v4l2-dev.h @@ -105,6 +105,10 @@ struct video_device Also note that vdev->minor is set to -1 if the registration failed. */ int __must_check video_register_device(struct video_device *vdev, int type, int nr); +/* Same as video_register_device, but no warning is issued if the desired + device node number was already in use. */ +int __must_check video_register_device_no_warn(struct video_device *vdev, int type, int nr); + /* Unregister video devices. Will do nothing if vdev == NULL or vdev->minor < 0. */ void video_unregister_device(struct video_device *vdev); |