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/az6027.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/az6027.c')
-rw-r--r-- | drivers/media/dvb/dvb-usb/az6027.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/drivers/media/dvb/dvb-usb/az6027.c b/drivers/media/dvb/dvb-usb/az6027.c index 03d9bfeb233e..62c58288469f 100644 --- a/drivers/media/dvb/dvb-usb/az6027.c +++ b/drivers/media/dvb/dvb-usb/az6027.c | |||
@@ -1125,10 +1125,13 @@ static struct dvb_usb_device_properties az6027_properties = { | |||
1125 | .power_ctrl = az6027_power_ctrl, | 1125 | .power_ctrl = az6027_power_ctrl, |
1126 | .read_mac_address = az6027_read_mac_addr, | 1126 | .read_mac_address = az6027_read_mac_addr, |
1127 | */ | 1127 | */ |
1128 | .rc_key_map = ir_codes_az6027_table, | 1128 | .rc.legacy = { |
1129 | .rc_key_map_size = ARRAY_SIZE(ir_codes_az6027_table), | 1129 | .rc_key_map = ir_codes_az6027_table, |
1130 | .rc_interval = 400, | 1130 | .rc_key_map_size = ARRAY_SIZE(ir_codes_az6027_table), |
1131 | .rc_query = az6027_rc_query, | 1131 | .rc_interval = 400, |
1132 | .rc_query = az6027_rc_query, | ||
1133 | }, | ||
1134 | |||
1132 | .i2c_algo = &az6027_i2c_algo, | 1135 | .i2c_algo = &az6027_i2c_algo, |
1133 | 1136 | ||
1134 | .num_device_descs = 5, | 1137 | .num_device_descs = 5, |