diff options
author | Mike Isely <isely@pobox.com> | 2008-04-22 13:45:42 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-04-24 13:07:48 -0400 |
commit | 5fd782af71876562c098aab0b240ceef2779d888 (patch) | |
tree | a2086b3cf48af6515e1a335122bdb175c1362f5a /drivers/media | |
parent | 40381cb02fb7fc0b46c55e3a71325b5d930580fa (diff) |
V4L/DVB (7314): pvrusb2: Make device attribute structure more compact
Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-devattr.h | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-devattr.h b/drivers/media/video/pvrusb2/pvrusb2-devattr.h index ce4004978a92..fb5f5d17e8cb 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-devattr.h +++ b/drivers/media/video/pvrusb2/pvrusb2-devattr.h | |||
@@ -65,52 +65,52 @@ struct pvr2_device_desc { | |||
65 | was initialized from internal ROM. */ | 65 | was initialized from internal ROM. */ |
66 | struct pvr2_string_table fx2_firmware; | 66 | struct pvr2_string_table fx2_firmware; |
67 | 67 | ||
68 | /* Initial standard bits to use for this device, if not zero. | ||
69 | Anything set here is also implied as an available standard. | ||
70 | Note: This is ignored if overridden on the module load line via | ||
71 | the video_std module option. */ | ||
72 | v4l2_std_id default_std_mask; | ||
73 | |||
74 | /* V4L tuner type ID to use with this device (only used if the | ||
75 | driver could not discover the type any other way). */ | ||
76 | int default_tuner_type; | ||
77 | |||
68 | /* Signal routing scheme used by device, contains one of | 78 | /* Signal routing scheme used by device, contains one of |
69 | PVR2_ROUTING_SCHEME_XXX. Schemes have to be defined as we | 79 | PVR2_ROUTING_SCHEME_XXX. Schemes have to be defined as we |
70 | encounter them. This is an arbitrary integer scheme id; its | 80 | encounter them. This is an arbitrary integer scheme id; its |
71 | meaning is contained entirely within the driver and is | 81 | meaning is contained entirely within the driver and is |
72 | interpreted by logic which must send commands to the chip-level | 82 | interpreted by logic which must send commands to the chip-level |
73 | drivers (search for things which touch this field). */ | 83 | drivers (search for things which touch this field). */ |
74 | unsigned int signal_routing_scheme; | 84 | unsigned char signal_routing_scheme; |
75 | 85 | ||
76 | /* Indicates scheme for controlling device's LED (if any). The | 86 | /* Indicates scheme for controlling device's LED (if any). The |
77 | driver will turn on the LED when streaming is underway. This | 87 | driver will turn on the LED when streaming is underway. This |
78 | contains one of PVR2_LED_SCHEME_XXX. */ | 88 | contains one of PVR2_LED_SCHEME_XXX. */ |
79 | unsigned int led_scheme; | 89 | unsigned char led_scheme; |
80 | 90 | ||
81 | /* Control scheme to use if there is a digital tuner. This | 91 | /* Control scheme to use if there is a digital tuner. This |
82 | contains one of PVR2_DIGITAL_SCHEME_XXX. This is an arbitrary | 92 | contains one of PVR2_DIGITAL_SCHEME_XXX. This is an arbitrary |
83 | integer scheme id; its meaning is contained entirely within the | 93 | integer scheme id; its meaning is contained entirely within the |
84 | driver and is interpreted by logic which must control the | 94 | driver and is interpreted by logic which must control the |
85 | streaming pathway (search for things which touch this field). */ | 95 | streaming pathway (search for things which touch this field). */ |
86 | unsigned int digital_control_scheme; | 96 | unsigned char digital_control_scheme; |
87 | |||
88 | /* V4L tuner type ID to use with this device (only used if the | ||
89 | driver could not discover the type any other way). */ | ||
90 | int default_tuner_type; | ||
91 | |||
92 | /* Initial standard bits to use for this device, if not zero. | ||
93 | Anything set here is also implied as an available standard. | ||
94 | Note: This is ignored if overridden on the module load line via | ||
95 | the video_std module option. */ | ||
96 | v4l2_std_id default_std_mask; | ||
97 | 97 | ||
98 | /* If set, we don't bother trying to load cx23416 firmware. */ | 98 | /* If set, we don't bother trying to load cx23416 firmware. */ |
99 | char flag_skip_cx23416_firmware; | 99 | int flag_skip_cx23416_firmware:1; |
100 | 100 | ||
101 | /* Device has a hauppauge eeprom which we can interrogate. */ | 101 | /* Device has a hauppauge eeprom which we can interrogate. */ |
102 | char flag_has_hauppauge_rom; | 102 | int flag_has_hauppauge_rom:1; |
103 | 103 | ||
104 | /* Device does not require a powerup command to be issued. */ | 104 | /* Device does not require a powerup command to be issued. */ |
105 | char flag_no_powerup; | 105 | int flag_no_powerup:1; |
106 | 106 | ||
107 | /* Device has a cx25840 - this enables special additional logic to | 107 | /* Device has a cx25840 - this enables special additional logic to |
108 | handle it. */ | 108 | handle it. */ |
109 | char flag_has_cx25840; | 109 | int flag_has_cx25840:1; |
110 | 110 | ||
111 | /* Device has a wm8775 - this enables special additional logic to | 111 | /* Device has a wm8775 - this enables special additional logic to |
112 | ensure that it is found. */ | 112 | ensure that it is found. */ |
113 | char flag_has_wm8775; | 113 | int flag_has_wm8775:1; |
114 | 114 | ||
115 | /* Device has IR hardware that can be faked into looking like a | 115 | /* Device has IR hardware that can be faked into looking like a |
116 | normal Hauppauge i2c IR receiver. This is currently very | 116 | normal Hauppauge i2c IR receiver. This is currently very |
@@ -120,15 +120,15 @@ struct pvr2_device_desc { | |||
120 | to virtualize the presence of the non-existant IR receiver chip and | 120 | to virtualize the presence of the non-existant IR receiver chip and |
121 | implement the virtual receiver in terms of appropriate FX2 | 121 | implement the virtual receiver in terms of appropriate FX2 |
122 | commands. */ | 122 | commands. */ |
123 | char flag_has_hauppauge_custom_ir; | 123 | int flag_has_hauppauge_custom_ir:1; |
124 | 124 | ||
125 | /* These bits define which kinds of sources the device can handle. | 125 | /* These bits define which kinds of sources the device can handle. |
126 | Note: Digital tuner presence is inferred by the | 126 | Note: Digital tuner presence is inferred by the |
127 | digital_control_scheme enumeration. */ | 127 | digital_control_scheme enumeration. */ |
128 | char flag_has_fmradio; /* Has FM radio receiver */ | 128 | int flag_has_fmradio:1; /* Has FM radio receiver */ |
129 | char flag_has_analogtuner; /* Has analog tuner */ | 129 | int flag_has_analogtuner:1; /* Has analog tuner */ |
130 | char flag_has_composite; /* Has composite input */ | 130 | int flag_has_composite:1; /* Has composite input */ |
131 | char flag_has_svideo; /* Has s-video input */ | 131 | int flag_has_svideo:1; /* Has s-video input */ |
132 | }; | 132 | }; |
133 | 133 | ||
134 | extern struct usb_device_id pvr2_device_table[]; | 134 | extern struct usb_device_id pvr2_device_table[]; |