aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/dvb-usb/dvb-usb.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2010-08-01 08:37:23 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-08-02 15:43:50 -0400
commit0ffd1ab34a00b1e92af50ef11e696839f4cf642b (patch)
treea9465fffab8d37fe22ab64cc7df95f121a073823 /drivers/media/dvb/dvb-usb/dvb-usb.h
parent5af935cc96a291f90799bf6a2587d87329a91699 (diff)
V4L/DVB: dib0700: properly implement IR change_protocol
This patch implements change_protocol callback. With this change, there's no need for an extra modprobe parameter to specify the protocol. When a table is loaded (either from in-kernel rc-map tables or via ir-keytable program), the driver will automatically change the protocol, in order to work with the given table. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/dvb-usb/dvb-usb.h')
-rw-r--r--drivers/media/dvb/dvb-usb/dvb-usb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/dvb/dvb-usb/dvb-usb.h b/drivers/media/dvb/dvb-usb/dvb-usb.h
index bcfbf9adc373..34f7b3ba8cc7 100644
--- a/drivers/media/dvb/dvb-usb/dvb-usb.h
+++ b/drivers/media/dvb/dvb-usb/dvb-usb.h
@@ -179,6 +179,7 @@ struct dvb_rc_legacy {
179/** 179/**
180 * struct dvb_rc properties of remote controller, using rc-core 180 * struct dvb_rc properties of remote controller, using rc-core
181 * @rc_codes: name of rc codes table 181 * @rc_codes: name of rc codes table
182 * @protocol: type of protocol(s) currently used by the driver
182 * @rc_query: called to query an event event. 183 * @rc_query: called to query an event event.
183 * @rc_interval: time in ms between two queries. 184 * @rc_interval: time in ms between two queries.
184 * @rc_props: remote controller properties 185 * @rc_props: remote controller properties
@@ -186,6 +187,7 @@ struct dvb_rc_legacy {
186 */ 187 */
187struct dvb_rc { 188struct dvb_rc {
188 char *rc_codes; 189 char *rc_codes;
190 u64 protocol;
189 char *module_name; 191 char *module_name;
190 int (*rc_query) (struct dvb_usb_device *d); 192 int (*rc_query) (struct dvb_usb_device *d);
191 int rc_interval; 193 int rc_interval;