diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-07-31 10:24:57 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-08-02 15:43:43 -0400 |
commit | 34abf2194499571b2efa6b4aface8c0ea0c47ce1 (patch) | |
tree | e2698d258ad65a7878fbc4b6c9e3de81228fb3ef /drivers/media/dvb/dvb-usb/dw2102.c | |
parent | 0172fea3c0cf55b61bc94738db3ece513264774c (diff) |
V4L/DVB: dvb-usb: get rid of struct dvb_usb_rc_key
dvb-usb has its own IR handle code. Now that we have a Remote
Controller subsystem, we should start using it. So, remove this
struct, in favor of the similar struct defined at the RC subsystem.
This is a big, but trivial patch. It is a 3 line delect, plus
lots of rename on several dvb-usb files.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/dvb-usb/dw2102.c')
-rw-r--r-- | drivers/media/dvb/dvb-usb/dw2102.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/media/dvb/dvb-usb/dw2102.c b/drivers/media/dvb/dvb-usb/dw2102.c index e8fb85380672..2528e06ec31f 100644 --- a/drivers/media/dvb/dvb-usb/dw2102.c +++ b/drivers/media/dvb/dvb-usb/dw2102.c | |||
@@ -74,7 +74,7 @@ | |||
74 | "on firmware-problems." | 74 | "on firmware-problems." |
75 | 75 | ||
76 | struct ir_codes_dvb_usb_table_table { | 76 | struct ir_codes_dvb_usb_table_table { |
77 | struct dvb_usb_rc_key *rc_keys; | 77 | struct ir_scancode *rc_keys; |
78 | int rc_keys_size; | 78 | int rc_keys_size; |
79 | }; | 79 | }; |
80 | 80 | ||
@@ -948,7 +948,7 @@ static int dw3101_tuner_attach(struct dvb_usb_adapter *adap) | |||
948 | return 0; | 948 | return 0; |
949 | } | 949 | } |
950 | 950 | ||
951 | static struct dvb_usb_rc_key ir_codes_dw210x_table[] = { | 951 | static struct ir_scancode ir_codes_dw210x_table[] = { |
952 | { 0xf80a, KEY_Q }, /*power*/ | 952 | { 0xf80a, KEY_Q }, /*power*/ |
953 | { 0xf80c, KEY_M }, /*mute*/ | 953 | { 0xf80c, KEY_M }, /*mute*/ |
954 | { 0xf811, KEY_1 }, | 954 | { 0xf811, KEY_1 }, |
@@ -982,7 +982,7 @@ static struct dvb_usb_rc_key ir_codes_dw210x_table[] = { | |||
982 | { 0xf81b, KEY_B }, /*recall*/ | 982 | { 0xf81b, KEY_B }, /*recall*/ |
983 | }; | 983 | }; |
984 | 984 | ||
985 | static struct dvb_usb_rc_key ir_codes_tevii_table[] = { | 985 | static struct ir_scancode ir_codes_tevii_table[] = { |
986 | { 0xf80a, KEY_POWER }, | 986 | { 0xf80a, KEY_POWER }, |
987 | { 0xf80c, KEY_MUTE }, | 987 | { 0xf80c, KEY_MUTE }, |
988 | { 0xf811, KEY_1 }, | 988 | { 0xf811, KEY_1 }, |
@@ -1032,7 +1032,7 @@ static struct dvb_usb_rc_key ir_codes_tevii_table[] = { | |||
1032 | { 0xf858, KEY_SWITCHVIDEOMODE }, | 1032 | { 0xf858, KEY_SWITCHVIDEOMODE }, |
1033 | }; | 1033 | }; |
1034 | 1034 | ||
1035 | static struct dvb_usb_rc_key ir_codes_tbs_table[] = { | 1035 | static struct ir_scancode ir_codes_tbs_table[] = { |
1036 | { 0xf884, KEY_POWER }, | 1036 | { 0xf884, KEY_POWER }, |
1037 | { 0xf894, KEY_MUTE }, | 1037 | { 0xf894, KEY_MUTE }, |
1038 | { 0xf887, KEY_1 }, | 1038 | { 0xf887, KEY_1 }, |
@@ -1075,7 +1075,7 @@ static struct ir_codes_dvb_usb_table_table keys_tables[] = { | |||
1075 | 1075 | ||
1076 | static int dw2102_rc_query(struct dvb_usb_device *d, u32 *event, int *state) | 1076 | static int dw2102_rc_query(struct dvb_usb_device *d, u32 *event, int *state) |
1077 | { | 1077 | { |
1078 | struct dvb_usb_rc_key *keymap = d->props.rc_key_map; | 1078 | struct ir_scancode *keymap = d->props.rc_key_map; |
1079 | int keymap_size = d->props.rc_key_map_size; | 1079 | int keymap_size = d->props.rc_key_map_size; |
1080 | u8 key[2]; | 1080 | u8 key[2]; |
1081 | struct i2c_msg msg = { | 1081 | struct i2c_msg msg = { |
@@ -1096,7 +1096,7 @@ static int dw2102_rc_query(struct dvb_usb_device *d, u32 *event, int *state) | |||
1096 | for (i = 0; i < keymap_size ; i++) { | 1096 | for (i = 0; i < keymap_size ; i++) { |
1097 | if (rc5_data(&keymap[i]) == msg.buf[0]) { | 1097 | if (rc5_data(&keymap[i]) == msg.buf[0]) { |
1098 | *state = REMOTE_KEY_PRESSED; | 1098 | *state = REMOTE_KEY_PRESSED; |
1099 | *event = keymap[i].event; | 1099 | *event = keymap[i].keycode; |
1100 | break; | 1100 | break; |
1101 | } | 1101 | } |
1102 | 1102 | ||