|
@@ -222,11 +222,13 @@ int video_register_device(struct video_device *vfd, int type, int nr)
|
|
EXPORT_SYMBOL(video_register_device);
|
|
EXPORT_SYMBOL(video_register_device);
|
|
|
|
|
|
/**
|
|
/**
|
|
- * video_register_device - register video4linux devices
|
|
|
|
|
|
+ * video_register_device_index - register video4linux devices
|
|
* @vfd: video device structure we want to register
|
|
* @vfd: video device structure we want to register
|
|
* @type: type of device to register
|
|
* @type: type of device to register
|
|
* @nr: which device number (0 == /dev/video0, 1 == /dev/video1, ...
|
|
* @nr: which device number (0 == /dev/video0, 1 == /dev/video1, ...
|
|
* -1 == first free)
|
|
* -1 == first free)
|
|
|
|
+ * @index: stream number based on parent device;
|
|
|
|
+ * -1 if auto assign, requested number otherwise
|
|
*
|
|
*
|
|
* The registration code assigns minor numbers based on the type
|
|
* The registration code assigns minor numbers based on the type
|
|
* requested. -ENFILE is returned in all the device slots for this
|
|
* requested. -ENFILE is returned in all the device slots for this
|