V4L/DVB (9327): v4l: use video_device.num instead of minor in video%d
The kernel number of a v4l2 node (e.g. videoX, radioX or vbiX) is now independent of the minor number. So instead of using the minor field of the video_device struct one has to use the num field: this always contains the kernel number of the device node. I forgot about this when I did the v4l2 core change, so this patch converts all drivers that use it in one go. Luckily the change is trivial. Cc: michael@mihu.de Cc: mchehab@infradead.org Cc: corbet@lwn.net Cc: luca.risolia@studio.unibo.it Cc: isely@pobox.com Cc: pe1rxq@amsat.org Cc: royale@zerezo.com Cc: mkrufky@linuxtv.org Cc: stoth@linuxtv.org 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
323a491a29
commit
c6330fb86f
@@ -545,11 +545,11 @@ int saa7146_register_device(struct video_device **vid, struct saa7146_dev* dev,
|
||||
if( VFL_TYPE_GRABBER == type ) {
|
||||
vv->video_minor = vfd->minor;
|
||||
INFO(("%s: registered device video%d [v4l2]\n",
|
||||
dev->name, vfd->minor & 0x1f));
|
||||
dev->name, vfd->num));
|
||||
} else {
|
||||
vv->vbi_minor = vfd->minor;
|
||||
INFO(("%s: registered device vbi%d [v4l2]\n",
|
||||
dev->name, vfd->minor & 0x1f));
|
||||
dev->name, vfd->num));
|
||||
}
|
||||
|
||||
*vid = vfd;
|
||||
|
Reference in New Issue
Block a user