diff options
Diffstat (limited to 'drivers/media/dvb/dvb-usb/dvb-usb.h')
-rw-r--r-- | drivers/media/dvb/dvb-usb/dvb-usb.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/drivers/media/dvb/dvb-usb/dvb-usb.h b/drivers/media/dvb/dvb-usb/dvb-usb.h index e441d274e6c1..fe2b87efb3f1 100644 --- a/drivers/media/dvb/dvb-usb/dvb-usb.h +++ b/drivers/media/dvb/dvb-usb/dvb-usb.h | |||
@@ -81,10 +81,25 @@ struct dvb_usb_device_description { | |||
81 | * @event: the input event assigned to key identified by custom and data | 81 | * @event: the input event assigned to key identified by custom and data |
82 | */ | 82 | */ |
83 | struct dvb_usb_rc_key { | 83 | struct dvb_usb_rc_key { |
84 | u8 custom,data; | 84 | u16 scan; |
85 | u32 event; | 85 | u32 event; |
86 | }; | 86 | }; |
87 | 87 | ||
88 | static inline u8 rc5_custom(struct dvb_usb_rc_key *key) | ||
89 | { | ||
90 | return (key->scan >> 8) & 0xff; | ||
91 | } | ||
92 | |||
93 | static inline u8 rc5_data(struct dvb_usb_rc_key *key) | ||
94 | { | ||
95 | return key->scan & 0xff; | ||
96 | } | ||
97 | |||
98 | static inline u8 rc5_scan(struct dvb_usb_rc_key *key) | ||
99 | { | ||
100 | return key->scan & 0xffff; | ||
101 | } | ||
102 | |||
88 | struct dvb_usb_device; | 103 | struct dvb_usb_device; |
89 | struct dvb_usb_adapter; | 104 | struct dvb_usb_adapter; |
90 | struct usb_data_stream; | 105 | struct usb_data_stream; |