mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-06 06:21:31 +00:00
V4L/DVB (12725): v4l: warn when desired devnodenr is in use & add _no_warn function
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. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
5062cb70c8
commit
6b5270d212
5 changed files with 40 additions and 8 deletions
|
@ -101,6 +101,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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue