diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-07-31 17:04:09 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-08-02 15:43:45 -0400 |
commit | f72a27b8ed4458bb9f7203408441d27382bc93f4 (patch) | |
tree | 667c20a22af36fecdfb770384afb3ef85a9578e2 /drivers/media/dvb/dvb-usb/opera1.c | |
parent | 34abf2194499571b2efa6b4aface8c0ea0c47ce1 (diff) |
V4L/DVB: dvb-usb: prepare drivers for using rc-core
This is a big patch, yet trivial. It just move the RC properties
to a separate struct, in order to prepare the dvb-usb drivers to
use rc-core. There's no change on the behavior of the drivers.
With this change, it is possible to have both legacy and rc-core
based code inside the dvb-usb-remote, allowing a gradual migration
to rc-core, driver per driver.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/dvb-usb/opera1.c')
-rw-r--r-- | drivers/media/dvb/dvb-usb/opera1.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/media/dvb/dvb-usb/opera1.c b/drivers/media/dvb/dvb-usb/opera1.c index 6a2f9e25f08..6b22ec64ab0 100644 --- a/drivers/media/dvb/dvb-usb/opera1.c +++ b/drivers/media/dvb/dvb-usb/opera1.c | |||
@@ -498,10 +498,12 @@ static struct dvb_usb_device_properties opera1_properties = { | |||
498 | .power_ctrl = opera1_power_ctrl, | 498 | .power_ctrl = opera1_power_ctrl, |
499 | .i2c_algo = &opera1_i2c_algo, | 499 | .i2c_algo = &opera1_i2c_algo, |
500 | 500 | ||
501 | .rc_key_map = ir_codes_opera1_table, | 501 | .rc.legacy = { |
502 | .rc_key_map_size = ARRAY_SIZE(ir_codes_opera1_table), | 502 | .rc_key_map = ir_codes_opera1_table, |
503 | .rc_interval = 200, | 503 | .rc_key_map_size = ARRAY_SIZE(ir_codes_opera1_table), |
504 | .rc_query = opera1_rc_query, | 504 | .rc_interval = 200, |
505 | .rc_query = opera1_rc_query, | ||
506 | }, | ||
505 | .read_mac_address = opera1_read_mac_address, | 507 | .read_mac_address = opera1_read_mac_address, |
506 | .generic_bulk_ctrl_endpoint = 0x00, | 508 | .generic_bulk_ctrl_endpoint = 0x00, |
507 | /* parameter for the MPEG2-data transfer */ | 509 | /* parameter for the MPEG2-data transfer */ |