diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-10-19 17:54:26 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-10-21 12:31:37 -0400 |
commit | c6330fb86fd0fed98b7e0d5792881a77b778fefc (patch) | |
tree | 3c87d6fa7053963cfdea592a2956b28354ce0832 /drivers/media/video/cx88 | |
parent | 323a491a29d0bb1e91263ca347cb42c4de28adfc (diff) |
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>
Diffstat (limited to 'drivers/media/video/cx88')
-rw-r--r-- | drivers/media/video/cx88/cx88-blackbird.c | 2 | ||||
-rw-r--r-- | drivers/media/video/cx88/cx88-video.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/video/cx88/cx88-blackbird.c b/drivers/media/video/cx88/cx88-blackbird.c index e71369754305..078be6319556 100644 --- a/drivers/media/video/cx88/cx88-blackbird.c +++ b/drivers/media/video/cx88/cx88-blackbird.c | |||
@@ -1285,7 +1285,7 @@ static int blackbird_register_video(struct cx8802_dev *dev) | |||
1285 | return err; | 1285 | return err; |
1286 | } | 1286 | } |
1287 | printk(KERN_INFO "%s/2: registered device video%d [mpeg]\n", | 1287 | printk(KERN_INFO "%s/2: registered device video%d [mpeg]\n", |
1288 | dev->core->name,dev->mpeg_dev->minor & 0x1f); | 1288 | dev->core->name, dev->mpeg_dev->num); |
1289 | return 0; | 1289 | return 0; |
1290 | } | 1290 | } |
1291 | 1291 | ||
diff --git a/drivers/media/video/cx88/cx88-video.c b/drivers/media/video/cx88/cx88-video.c index 3904b73f52ee..61265fd04d56 100644 --- a/drivers/media/video/cx88/cx88-video.c +++ b/drivers/media/video/cx88/cx88-video.c | |||
@@ -1911,7 +1911,7 @@ static int __devinit cx8800_initdev(struct pci_dev *pci_dev, | |||
1911 | goto fail_unreg; | 1911 | goto fail_unreg; |
1912 | } | 1912 | } |
1913 | printk(KERN_INFO "%s/0: registered device video%d [v4l2]\n", | 1913 | printk(KERN_INFO "%s/0: registered device video%d [v4l2]\n", |
1914 | core->name,dev->video_dev->minor & 0x1f); | 1914 | core->name, dev->video_dev->num); |
1915 | 1915 | ||
1916 | dev->vbi_dev = cx88_vdev_init(core,dev->pci,&cx8800_vbi_template,"vbi"); | 1916 | dev->vbi_dev = cx88_vdev_init(core,dev->pci,&cx8800_vbi_template,"vbi"); |
1917 | err = video_register_device(dev->vbi_dev,VFL_TYPE_VBI, | 1917 | err = video_register_device(dev->vbi_dev,VFL_TYPE_VBI, |
@@ -1922,7 +1922,7 @@ static int __devinit cx8800_initdev(struct pci_dev *pci_dev, | |||
1922 | goto fail_unreg; | 1922 | goto fail_unreg; |
1923 | } | 1923 | } |
1924 | printk(KERN_INFO "%s/0: registered device vbi%d\n", | 1924 | printk(KERN_INFO "%s/0: registered device vbi%d\n", |
1925 | core->name,dev->vbi_dev->minor & 0x1f); | 1925 | core->name, dev->vbi_dev->num); |
1926 | 1926 | ||
1927 | if (core->board.radio.type == CX88_RADIO) { | 1927 | if (core->board.radio.type == CX88_RADIO) { |
1928 | dev->radio_dev = cx88_vdev_init(core,dev->pci, | 1928 | dev->radio_dev = cx88_vdev_init(core,dev->pci, |
@@ -1935,7 +1935,7 @@ static int __devinit cx8800_initdev(struct pci_dev *pci_dev, | |||
1935 | goto fail_unreg; | 1935 | goto fail_unreg; |
1936 | } | 1936 | } |
1937 | printk(KERN_INFO "%s/0: registered device radio%d\n", | 1937 | printk(KERN_INFO "%s/0: registered device radio%d\n", |
1938 | core->name,dev->radio_dev->minor & 0x1f); | 1938 | core->name, dev->radio_dev->num); |
1939 | } | 1939 | } |
1940 | 1940 | ||
1941 | /* everything worked */ | 1941 | /* everything worked */ |