summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h
diff options
context:
space:
mode:
authorMike Isely <isely@pobox.com>2006-12-27 20:07:58 -0600
committerMike Isely <isely@pobox.com>2006-12-27 20:07:58 -0600
commitd33eaf58a160d1bf2e2d8fdb593c76d02e56bb2a (patch)
tree9819f462f0b98c95a4b818f40cd672bca1bceca7 /linux/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h
parent07c2e5338998bde7ba3bfd338813a5a4dacf430f (diff)
downloadmediapointer-dvb-s2-d33eaf58a160d1bf2e2d8fdb593c76d02e56bb2a.tar.gz
mediapointer-dvb-s2-d33eaf58a160d1bf2e2d8fdb593c76d02e56bb2a.tar.bz2
pvrusb2: Implement multiple minor device number handling
From: Pantelis Koukousoulas <pakt223@freemail.gr> This is the first patch in preparation of the V4L2/IVTV radio interface. It does away with the assumption of only one minor per device. It also adds a file to show the radio minor as well. This can be useful for a program like pvr-radio.c (when it grows up), since this way it can search for the minor of the /dev/radioX device it opened and use the video minor of the same driver instance to get to the actual stream. The implementation looks kinda ugly. Feel free to improve (that is the reason behind separate patches anyway). --Pantelis Signed-off-by: Pantelis Koukousoulas <pakt223@freemail.gr> Signed-off-by: Mike Isely <isely@pobox.com>
Diffstat (limited to 'linux/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h')
-rw-r--r--linux/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/linux/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h b/linux/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h
index e85cda566..53283b7e9 100644
--- a/linux/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h
+++ b/linux/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h
@@ -298,9 +298,9 @@ struct pvr2_hdw {
int unit_number; /* ID for driver instance */
unsigned long serial_number; /* ID for hardware itself */
- /* Minor number used by v4l logic (yes, this is a hack, as there should
- be no v4l junk here). Probably a better way to do this. */
- int v4l_minor_number;
+ /* Minor numbers used by v4l logic (yes, this is a hack, as there
+ should be no v4l junk here). Probably a better way to do this. */
+ int v4l_minor_number[3];
/* Location of eeprom or a negative number if none */
int eeprom_addr;