V4L/DVB (12541): v4l: remove video_register_device_index
video_register_device_index is never actually called, instead the stream index number is always calculated automatically. This patch removes this function and simplifies the internal get_index function since that can now always just return the first free index. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
53dacb1570
commit
7ae0cd9bc7
@@ -100,8 +100,6 @@ 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);
|
||||
int __must_check video_register_device_index(struct video_device *vdev,
|
||||
int type, int nr, int index);
|
||||
|
||||
/* Unregister video devices. Will do nothing if vdev == NULL or
|
||||
vdev->minor < 0. */
|
||||
|
Reference in New Issue
Block a user