diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-11-17 11:53:11 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-12-29 05:16:50 -0500 |
commit | ca86674b8a93ea11c4bb6f4dd0113b1adf1fa841 (patch) | |
tree | 1f51d1aafa28121856b033516a00998a632e2864 /drivers/media | |
parent | 6bda96447cef24fbf97a798b1ea664224d5fdc25 (diff) |
[media] Rename all public generic RC functions from ir_ to rc_
Those functions are not InfraRed specific. So, rename them to properly
reflect it.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/dvb/dm1105/dm1105.c | 2 | ||||
-rw-r--r-- | drivers/media/dvb/dvb-usb/af9015.c | 4 | ||||
-rw-r--r-- | drivers/media/dvb/dvb-usb/anysee.c | 2 | ||||
-rw-r--r-- | drivers/media/dvb/dvb-usb/dib0700_core.c | 2 | ||||
-rw-r--r-- | drivers/media/dvb/dvb-usb/dib0700_devices.c | 4 | ||||
-rw-r--r-- | drivers/media/dvb/dvb-usb/lmedm04.c | 2 | ||||
-rw-r--r-- | drivers/media/dvb/ttpci/budget-ci.c | 2 | ||||
-rw-r--r-- | drivers/media/rc/imon.c | 10 | ||||
-rw-r--r-- | drivers/media/rc/ir-jvc-decoder.c | 4 | ||||
-rw-r--r-- | drivers/media/rc/ir-nec-decoder.c | 6 | ||||
-rw-r--r-- | drivers/media/rc/ir-rc5-decoder.c | 2 | ||||
-rw-r--r-- | drivers/media/rc/ir-rc5-sz-decoder.c | 2 | ||||
-rw-r--r-- | drivers/media/rc/ir-rc6-decoder.c | 2 | ||||
-rw-r--r-- | drivers/media/rc/ir-sony-decoder.c | 2 | ||||
-rw-r--r-- | drivers/media/rc/rc-main.c | 36 | ||||
-rw-r--r-- | drivers/media/video/bt8xx/bttv-input.c | 16 | ||||
-rw-r--r-- | drivers/media/video/cx88/cx88-input.c | 14 | ||||
-rw-r--r-- | drivers/media/video/em28xx/em28xx-input.c | 4 | ||||
-rw-r--r-- | drivers/media/video/ir-kbd-i2c.c | 2 | ||||
-rw-r--r-- | drivers/media/video/saa7134/saa7134-input.c | 12 |
20 files changed, 65 insertions, 65 deletions
diff --git a/drivers/media/dvb/dm1105/dm1105.c b/drivers/media/dvb/dm1105/dm1105.c index e9cacf6e9277..2d8b4044be36 100644 --- a/drivers/media/dvb/dm1105/dm1105.c +++ b/drivers/media/dvb/dm1105/dm1105.c | |||
@@ -531,7 +531,7 @@ static void dm1105_emit_key(struct work_struct *work) | |||
531 | 531 | ||
532 | data = (ircom >> 8) & 0x7f; | 532 | data = (ircom >> 8) & 0x7f; |
533 | 533 | ||
534 | ir_keydown(ir->dev, data, 0); | 534 | rc_keydown(ir->dev, data, 0); |
535 | } | 535 | } |
536 | 536 | ||
537 | /* work handler */ | 537 | /* work handler */ |
diff --git a/drivers/media/dvb/dvb-usb/af9015.c b/drivers/media/dvb/dvb-usb/af9015.c index 8b9ab3002e11..bc2a6e464cea 100644 --- a/drivers/media/dvb/dvb-usb/af9015.c +++ b/drivers/media/dvb/dvb-usb/af9015.c | |||
@@ -1041,13 +1041,13 @@ static int af9015_rc_query(struct dvb_usb_device *d) | |||
1041 | priv->rc_keycode = buf[12] << 16 | | 1041 | priv->rc_keycode = buf[12] << 16 | |
1042 | buf[13] << 8 | buf[14]; | 1042 | buf[13] << 8 | buf[14]; |
1043 | } | 1043 | } |
1044 | ir_keydown(d->rc_dev, priv->rc_keycode, 0); | 1044 | rc_keydown(d->rc_dev, priv->rc_keycode, 0); |
1045 | } else { | 1045 | } else { |
1046 | priv->rc_keycode = 0; /* clear just for sure */ | 1046 | priv->rc_keycode = 0; /* clear just for sure */ |
1047 | } | 1047 | } |
1048 | } else if (priv->rc_repeat != buf[6] || buf[0]) { | 1048 | } else if (priv->rc_repeat != buf[6] || buf[0]) { |
1049 | deb_rc("%s: key repeated\n", __func__); | 1049 | deb_rc("%s: key repeated\n", __func__); |
1050 | ir_keydown(d->rc_dev, priv->rc_keycode, 0); | 1050 | rc_keydown(d->rc_dev, priv->rc_keycode, 0); |
1051 | } else { | 1051 | } else { |
1052 | deb_rc("%s: no key press\n", __func__); | 1052 | deb_rc("%s: no key press\n", __func__); |
1053 | } | 1053 | } |
diff --git a/drivers/media/dvb/dvb-usb/anysee.c b/drivers/media/dvb/dvb-usb/anysee.c index c6e4ba53ad61..5e12488f3c76 100644 --- a/drivers/media/dvb/dvb-usb/anysee.c +++ b/drivers/media/dvb/dvb-usb/anysee.c | |||
@@ -394,7 +394,7 @@ static int anysee_rc_query(struct dvb_usb_device *d) | |||
394 | 394 | ||
395 | if (ircode[0]) { | 395 | if (ircode[0]) { |
396 | deb_rc("%s: key pressed %02x\n", __func__, ircode[1]); | 396 | deb_rc("%s: key pressed %02x\n", __func__, ircode[1]); |
397 | ir_keydown(d->rc_dev, 0x08 << 8 | ircode[1], 0); | 397 | rc_keydown(d->rc_dev, 0x08 << 8 | ircode[1], 0); |
398 | } | 398 | } |
399 | 399 | ||
400 | return 0; | 400 | return 0; |
diff --git a/drivers/media/dvb/dvb-usb/dib0700_core.c b/drivers/media/dvb/dvb-usb/dib0700_core.c index 3b58f4575689..1dd119e7b676 100644 --- a/drivers/media/dvb/dvb-usb/dib0700_core.c +++ b/drivers/media/dvb/dvb-usb/dib0700_core.c | |||
@@ -600,7 +600,7 @@ static void dib0700_rc_urb_completion(struct urb *purb) | |||
600 | goto resubmit; | 600 | goto resubmit; |
601 | } | 601 | } |
602 | 602 | ||
603 | ir_keydown(d->rc_dev, keycode, toggle); | 603 | rc_keydown(d->rc_dev, keycode, toggle); |
604 | 604 | ||
605 | resubmit: | 605 | resubmit: |
606 | /* Clean the buffer before we requeue */ | 606 | /* Clean the buffer before we requeue */ |
diff --git a/drivers/media/dvb/dvb-usb/dib0700_devices.c b/drivers/media/dvb/dvb-usb/dib0700_devices.c index be167f2bea33..9ac920d0483e 100644 --- a/drivers/media/dvb/dvb-usb/dib0700_devices.c +++ b/drivers/media/dvb/dvb-usb/dib0700_devices.c | |||
@@ -520,13 +520,13 @@ static int dib0700_rc_query_old_firmware(struct dvb_usb_device *d) | |||
520 | d->last_event = keycode; | 520 | d->last_event = keycode; |
521 | } | 521 | } |
522 | 522 | ||
523 | ir_keydown(d->rc_dev, keycode, 0); | 523 | rc_keydown(d->rc_dev, keycode, 0); |
524 | break; | 524 | break; |
525 | default: | 525 | default: |
526 | /* RC-5 protocol changes toggle bit on new keypress */ | 526 | /* RC-5 protocol changes toggle bit on new keypress */ |
527 | keycode = key[3-2] << 8 | key[3-3]; | 527 | keycode = key[3-2] << 8 | key[3-3]; |
528 | toggle = key[3-1]; | 528 | toggle = key[3-1]; |
529 | ir_keydown(d->rc_dev, keycode, toggle); | 529 | rc_keydown(d->rc_dev, keycode, toggle); |
530 | 530 | ||
531 | break; | 531 | break; |
532 | } | 532 | } |
diff --git a/drivers/media/dvb/dvb-usb/lmedm04.c b/drivers/media/dvb/dvb-usb/lmedm04.c index f0c030837f29..1455c238b01b 100644 --- a/drivers/media/dvb/dvb-usb/lmedm04.c +++ b/drivers/media/dvb/dvb-usb/lmedm04.c | |||
@@ -198,7 +198,7 @@ static int lme2510_remote_keypress(struct dvb_usb_adapter *adap, u16 keypress) | |||
198 | deb_info(1, "INT Key Keypress =%04x", keypress); | 198 | deb_info(1, "INT Key Keypress =%04x", keypress); |
199 | 199 | ||
200 | if (keypress > 0) | 200 | if (keypress > 0) |
201 | ir_keydown(d->rc_dev, keypress, 0); | 201 | rc_keydown(d->rc_dev, keypress, 0); |
202 | 202 | ||
203 | return 0; | 203 | return 0; |
204 | } | 204 | } |
diff --git a/drivers/media/dvb/ttpci/budget-ci.c b/drivers/media/dvb/ttpci/budget-ci.c index 32caa9b7af8e..8ae67c1751a9 100644 --- a/drivers/media/dvb/ttpci/budget-ci.c +++ b/drivers/media/dvb/ttpci/budget-ci.c | |||
@@ -159,7 +159,7 @@ static void msp430_ir_interrupt(unsigned long data) | |||
159 | budget_ci->ir.rc5_device != (command & 0x1f)) | 159 | budget_ci->ir.rc5_device != (command & 0x1f)) |
160 | return; | 160 | return; |
161 | 161 | ||
162 | ir_keydown(dev, budget_ci->ir.ir_key, (command & 0x20) ? 1 : 0); | 162 | rc_keydown(dev, budget_ci->ir.ir_key, (command & 0x20) ? 1 : 0); |
163 | } | 163 | } |
164 | 164 | ||
165 | static int msp430_ir_init(struct budget_ci *budget_ci) | 165 | static int msp430_ir_init(struct budget_ci *budget_ci) |
diff --git a/drivers/media/rc/imon.c b/drivers/media/rc/imon.c index b6ba3c7dc632..d67573edb052 100644 --- a/drivers/media/rc/imon.c +++ b/drivers/media/rc/imon.c | |||
@@ -1146,14 +1146,14 @@ static u32 imon_remote_key_lookup(struct imon_context *ictx, u32 scancode) | |||
1146 | bool is_release_code = false; | 1146 | bool is_release_code = false; |
1147 | 1147 | ||
1148 | /* Look for the initial press of a button */ | 1148 | /* Look for the initial press of a button */ |
1149 | keycode = ir_g_keycode_from_table(ictx->rdev, scancode); | 1149 | keycode = rc_g_keycode_from_table(ictx->rdev, scancode); |
1150 | ictx->rc_toggle = 0x0; | 1150 | ictx->rc_toggle = 0x0; |
1151 | ictx->rc_scancode = scancode; | 1151 | ictx->rc_scancode = scancode; |
1152 | 1152 | ||
1153 | /* Look for the release of a button */ | 1153 | /* Look for the release of a button */ |
1154 | if (keycode == KEY_RESERVED) { | 1154 | if (keycode == KEY_RESERVED) { |
1155 | release = scancode & ~0x4000; | 1155 | release = scancode & ~0x4000; |
1156 | keycode = ir_g_keycode_from_table(ictx->rdev, release); | 1156 | keycode = rc_g_keycode_from_table(ictx->rdev, release); |
1157 | if (keycode != KEY_RESERVED) | 1157 | if (keycode != KEY_RESERVED) |
1158 | is_release_code = true; | 1158 | is_release_code = true; |
1159 | } | 1159 | } |
@@ -1182,7 +1182,7 @@ static u32 imon_mce_key_lookup(struct imon_context *ictx, u32 scancode) | |||
1182 | scancode = scancode | MCE_KEY_MASK | MCE_TOGGLE_BIT; | 1182 | scancode = scancode | MCE_KEY_MASK | MCE_TOGGLE_BIT; |
1183 | 1183 | ||
1184 | ictx->rc_scancode = scancode; | 1184 | ictx->rc_scancode = scancode; |
1185 | keycode = ir_g_keycode_from_table(ictx->rdev, scancode); | 1185 | keycode = rc_g_keycode_from_table(ictx->rdev, scancode); |
1186 | 1186 | ||
1187 | /* not used in mce mode, but make sure we know its false */ | 1187 | /* not used in mce mode, but make sure we know its false */ |
1188 | ictx->release_code = false; | 1188 | ictx->release_code = false; |
@@ -1564,9 +1564,9 @@ static void imon_incoming_packet(struct imon_context *ictx, | |||
1564 | 1564 | ||
1565 | if (ktype != IMON_KEY_PANEL) { | 1565 | if (ktype != IMON_KEY_PANEL) { |
1566 | if (press_type == 0) | 1566 | if (press_type == 0) |
1567 | ir_keyup(ictx->rdev); | 1567 | rc_keyup(ictx->rdev); |
1568 | else { | 1568 | else { |
1569 | ir_keydown(ictx->rdev, ictx->rc_scancode, ictx->rc_toggle); | 1569 | rc_keydown(ictx->rdev, ictx->rc_scancode, ictx->rc_toggle); |
1570 | spin_lock_irqsave(&ictx->kc_lock, flags); | 1570 | spin_lock_irqsave(&ictx->kc_lock, flags); |
1571 | ictx->last_keycode = ictx->kc; | 1571 | ictx->last_keycode = ictx->kc; |
1572 | spin_unlock_irqrestore(&ictx->kc_lock, flags); | 1572 | spin_unlock_irqrestore(&ictx->kc_lock, flags); |
diff --git a/drivers/media/rc/ir-jvc-decoder.c b/drivers/media/rc/ir-jvc-decoder.c index cfe0e70440a5..09c143ff33f3 100644 --- a/drivers/media/rc/ir-jvc-decoder.c +++ b/drivers/media/rc/ir-jvc-decoder.c | |||
@@ -139,12 +139,12 @@ again: | |||
139 | scancode = (bitrev8((data->bits >> 8) & 0xff) << 8) | | 139 | scancode = (bitrev8((data->bits >> 8) & 0xff) << 8) | |
140 | (bitrev8((data->bits >> 0) & 0xff) << 0); | 140 | (bitrev8((data->bits >> 0) & 0xff) << 0); |
141 | IR_dprintk(1, "JVC scancode 0x%04x\n", scancode); | 141 | IR_dprintk(1, "JVC scancode 0x%04x\n", scancode); |
142 | ir_keydown(dev, scancode, data->toggle); | 142 | rc_keydown(dev, scancode, data->toggle); |
143 | data->first = false; | 143 | data->first = false; |
144 | data->old_bits = data->bits; | 144 | data->old_bits = data->bits; |
145 | } else if (data->bits == data->old_bits) { | 145 | } else if (data->bits == data->old_bits) { |
146 | IR_dprintk(1, "JVC repeat\n"); | 146 | IR_dprintk(1, "JVC repeat\n"); |
147 | ir_repeat(dev); | 147 | rc_repeat(dev); |
148 | } else { | 148 | } else { |
149 | IR_dprintk(1, "JVC invalid repeat msg\n"); | 149 | IR_dprintk(1, "JVC invalid repeat msg\n"); |
150 | break; | 150 | break; |
diff --git a/drivers/media/rc/ir-nec-decoder.c b/drivers/media/rc/ir-nec-decoder.c index 8ff157a140ca..235d774d0ec2 100644 --- a/drivers/media/rc/ir-nec-decoder.c +++ b/drivers/media/rc/ir-nec-decoder.c | |||
@@ -88,7 +88,7 @@ static int ir_nec_decode(struct rc_dev *dev, struct ir_raw_event ev) | |||
88 | data->state = STATE_BIT_PULSE; | 88 | data->state = STATE_BIT_PULSE; |
89 | return 0; | 89 | return 0; |
90 | } else if (eq_margin(ev.duration, NEC_REPEAT_SPACE, NEC_UNIT / 2)) { | 90 | } else if (eq_margin(ev.duration, NEC_REPEAT_SPACE, NEC_UNIT / 2)) { |
91 | ir_repeat(dev); | 91 | rc_repeat(dev); |
92 | IR_dprintk(1, "Repeat last key\n"); | 92 | IR_dprintk(1, "Repeat last key\n"); |
93 | data->state = STATE_TRAILER_PULSE; | 93 | data->state = STATE_TRAILER_PULSE; |
94 | return 0; | 94 | return 0; |
@@ -114,7 +114,7 @@ static int ir_nec_decode(struct rc_dev *dev, struct ir_raw_event ev) | |||
114 | geq_margin(ev.duration, | 114 | geq_margin(ev.duration, |
115 | NEC_TRAILER_SPACE, NEC_UNIT / 2)) { | 115 | NEC_TRAILER_SPACE, NEC_UNIT / 2)) { |
116 | IR_dprintk(1, "Repeat last key\n"); | 116 | IR_dprintk(1, "Repeat last key\n"); |
117 | ir_repeat(dev); | 117 | rc_repeat(dev); |
118 | data->state = STATE_INACTIVE; | 118 | data->state = STATE_INACTIVE; |
119 | return 0; | 119 | return 0; |
120 | 120 | ||
@@ -178,7 +178,7 @@ static int ir_nec_decode(struct rc_dev *dev, struct ir_raw_event ev) | |||
178 | if (data->is_nec_x) | 178 | if (data->is_nec_x) |
179 | data->necx_repeat = true; | 179 | data->necx_repeat = true; |
180 | 180 | ||
181 | ir_keydown(dev, scancode, 0); | 181 | rc_keydown(dev, scancode, 0); |
182 | data->state = STATE_INACTIVE; | 182 | data->state = STATE_INACTIVE; |
183 | return 0; | 183 | return 0; |
184 | } | 184 | } |
diff --git a/drivers/media/rc/ir-rc5-decoder.c b/drivers/media/rc/ir-rc5-decoder.c index dae6f9a9b662..779ab0d0a285 100644 --- a/drivers/media/rc/ir-rc5-decoder.c +++ b/drivers/media/rc/ir-rc5-decoder.c | |||
@@ -150,7 +150,7 @@ again: | |||
150 | scancode, toggle); | 150 | scancode, toggle); |
151 | } | 151 | } |
152 | 152 | ||
153 | ir_keydown(dev, scancode, toggle); | 153 | rc_keydown(dev, scancode, toggle); |
154 | data->state = STATE_INACTIVE; | 154 | data->state = STATE_INACTIVE; |
155 | return 0; | 155 | return 0; |
156 | } | 156 | } |
diff --git a/drivers/media/rc/ir-rc5-sz-decoder.c b/drivers/media/rc/ir-rc5-sz-decoder.c index d8a53c02c1e4..5586bf20c8d7 100644 --- a/drivers/media/rc/ir-rc5-sz-decoder.c +++ b/drivers/media/rc/ir-rc5-sz-decoder.c | |||
@@ -114,7 +114,7 @@ again: | |||
114 | IR_dprintk(1, "RC5-sz scancode 0x%04x (toggle: %u)\n", | 114 | IR_dprintk(1, "RC5-sz scancode 0x%04x (toggle: %u)\n", |
115 | scancode, toggle); | 115 | scancode, toggle); |
116 | 116 | ||
117 | ir_keydown(dev, scancode, toggle); | 117 | rc_keydown(dev, scancode, toggle); |
118 | data->state = STATE_INACTIVE; | 118 | data->state = STATE_INACTIVE; |
119 | return 0; | 119 | return 0; |
120 | } | 120 | } |
diff --git a/drivers/media/rc/ir-rc6-decoder.c b/drivers/media/rc/ir-rc6-decoder.c index 2435bbd1dbcc..88d948728c2f 100644 --- a/drivers/media/rc/ir-rc6-decoder.c +++ b/drivers/media/rc/ir-rc6-decoder.c | |||
@@ -242,7 +242,7 @@ again: | |||
242 | goto out; | 242 | goto out; |
243 | } | 243 | } |
244 | 244 | ||
245 | ir_keydown(dev, scancode, toggle); | 245 | rc_keydown(dev, scancode, toggle); |
246 | data->state = STATE_INACTIVE; | 246 | data->state = STATE_INACTIVE; |
247 | return 0; | 247 | return 0; |
248 | } | 248 | } |
diff --git a/drivers/media/rc/ir-sony-decoder.c b/drivers/media/rc/ir-sony-decoder.c index 3138520fb9e7..5292b89f8de2 100644 --- a/drivers/media/rc/ir-sony-decoder.c +++ b/drivers/media/rc/ir-sony-decoder.c | |||
@@ -143,7 +143,7 @@ static int ir_sony_decode(struct rc_dev *dev, struct ir_raw_event ev) | |||
143 | 143 | ||
144 | scancode = device << 16 | subdevice << 8 | function; | 144 | scancode = device << 16 | subdevice << 8 | function; |
145 | IR_dprintk(1, "Sony(%u) scancode 0x%05x\n", data->count, scancode); | 145 | IR_dprintk(1, "Sony(%u) scancode 0x%05x\n", data->count, scancode); |
146 | ir_keydown(dev, scancode, 0); | 146 | rc_keydown(dev, scancode, 0); |
147 | data->state = STATE_INACTIVE; | 147 | data->state = STATE_INACTIVE; |
148 | return 0; | 148 | return 0; |
149 | } | 149 | } |
diff --git a/drivers/media/rc/rc-main.c b/drivers/media/rc/rc-main.c index d91b62cf1324..11e2703ef1c4 100644 --- a/drivers/media/rc/rc-main.c +++ b/drivers/media/rc/rc-main.c | |||
@@ -481,7 +481,7 @@ out: | |||
481 | } | 481 | } |
482 | 482 | ||
483 | /** | 483 | /** |
484 | * ir_g_keycode_from_table() - gets the keycode that corresponds to a scancode | 484 | * rc_g_keycode_from_table() - gets the keycode that corresponds to a scancode |
485 | * @dev: the struct rc_dev descriptor of the device | 485 | * @dev: the struct rc_dev descriptor of the device |
486 | * @scancode: the scancode to look for | 486 | * @scancode: the scancode to look for |
487 | * @return: the corresponding keycode, or KEY_RESERVED | 487 | * @return: the corresponding keycode, or KEY_RESERVED |
@@ -490,7 +490,7 @@ out: | |||
490 | * keycode. Normally it should not be used since drivers should have no | 490 | * keycode. Normally it should not be used since drivers should have no |
491 | * interest in keycodes. | 491 | * interest in keycodes. |
492 | */ | 492 | */ |
493 | u32 ir_g_keycode_from_table(struct rc_dev *dev, u32 scancode) | 493 | u32 rc_g_keycode_from_table(struct rc_dev *dev, u32 scancode) |
494 | { | 494 | { |
495 | struct ir_scancode_table *rc_tab = &dev->rc_tab; | 495 | struct ir_scancode_table *rc_tab = &dev->rc_tab; |
496 | unsigned int keycode; | 496 | unsigned int keycode; |
@@ -511,7 +511,7 @@ u32 ir_g_keycode_from_table(struct rc_dev *dev, u32 scancode) | |||
511 | 511 | ||
512 | return keycode; | 512 | return keycode; |
513 | } | 513 | } |
514 | EXPORT_SYMBOL_GPL(ir_g_keycode_from_table); | 514 | EXPORT_SYMBOL_GPL(rc_g_keycode_from_table); |
515 | 515 | ||
516 | /** | 516 | /** |
517 | * ir_do_keyup() - internal function to signal the release of a keypress | 517 | * ir_do_keyup() - internal function to signal the release of a keypress |
@@ -532,13 +532,13 @@ static void ir_do_keyup(struct rc_dev *dev) | |||
532 | } | 532 | } |
533 | 533 | ||
534 | /** | 534 | /** |
535 | * ir_keyup() - signals the release of a keypress | 535 | * rc_keyup() - signals the release of a keypress |
536 | * @dev: the struct rc_dev descriptor of the device | 536 | * @dev: the struct rc_dev descriptor of the device |
537 | * | 537 | * |
538 | * This routine is used to signal that a key has been released on the | 538 | * This routine is used to signal that a key has been released on the |
539 | * remote control. | 539 | * remote control. |
540 | */ | 540 | */ |
541 | void ir_keyup(struct rc_dev *dev) | 541 | void rc_keyup(struct rc_dev *dev) |
542 | { | 542 | { |
543 | unsigned long flags; | 543 | unsigned long flags; |
544 | 544 | ||
@@ -546,7 +546,7 @@ void ir_keyup(struct rc_dev *dev) | |||
546 | ir_do_keyup(dev); | 546 | ir_do_keyup(dev); |
547 | spin_unlock_irqrestore(&dev->keylock, flags); | 547 | spin_unlock_irqrestore(&dev->keylock, flags); |
548 | } | 548 | } |
549 | EXPORT_SYMBOL_GPL(ir_keyup); | 549 | EXPORT_SYMBOL_GPL(rc_keyup); |
550 | 550 | ||
551 | /** | 551 | /** |
552 | * ir_timer_keyup() - generates a keyup event after a timeout | 552 | * ir_timer_keyup() - generates a keyup event after a timeout |
@@ -577,14 +577,14 @@ static void ir_timer_keyup(unsigned long cookie) | |||
577 | } | 577 | } |
578 | 578 | ||
579 | /** | 579 | /** |
580 | * ir_repeat() - signals that a key is still pressed | 580 | * rc_repeat() - signals that a key is still pressed |
581 | * @dev: the struct rc_dev descriptor of the device | 581 | * @dev: the struct rc_dev descriptor of the device |
582 | * | 582 | * |
583 | * This routine is used by IR decoders when a repeat message which does | 583 | * This routine is used by IR decoders when a repeat message which does |
584 | * not include the necessary bits to reproduce the scancode has been | 584 | * not include the necessary bits to reproduce the scancode has been |
585 | * received. | 585 | * received. |
586 | */ | 586 | */ |
587 | void ir_repeat(struct rc_dev *dev) | 587 | void rc_repeat(struct rc_dev *dev) |
588 | { | 588 | { |
589 | unsigned long flags; | 589 | unsigned long flags; |
590 | 590 | ||
@@ -601,7 +601,7 @@ void ir_repeat(struct rc_dev *dev) | |||
601 | out: | 601 | out: |
602 | spin_unlock_irqrestore(&dev->keylock, flags); | 602 | spin_unlock_irqrestore(&dev->keylock, flags); |
603 | } | 603 | } |
604 | EXPORT_SYMBOL_GPL(ir_repeat); | 604 | EXPORT_SYMBOL_GPL(rc_repeat); |
605 | 605 | ||
606 | /** | 606 | /** |
607 | * ir_do_keydown() - internal function to process a keypress | 607 | * ir_do_keydown() - internal function to process a keypress |
@@ -643,7 +643,7 @@ static void ir_do_keydown(struct rc_dev *dev, int scancode, | |||
643 | } | 643 | } |
644 | 644 | ||
645 | /** | 645 | /** |
646 | * ir_keydown() - generates input event for a key press | 646 | * rc_keydown() - generates input event for a key press |
647 | * @dev: the struct rc_dev descriptor of the device | 647 | * @dev: the struct rc_dev descriptor of the device |
648 | * @scancode: the scancode that we're seeking | 648 | * @scancode: the scancode that we're seeking |
649 | * @toggle: the toggle value (protocol dependent, if the protocol doesn't | 649 | * @toggle: the toggle value (protocol dependent, if the protocol doesn't |
@@ -652,10 +652,10 @@ static void ir_do_keydown(struct rc_dev *dev, int scancode, | |||
652 | * This routine is used to signal that a key has been pressed on the | 652 | * This routine is used to signal that a key has been pressed on the |
653 | * remote control. | 653 | * remote control. |
654 | */ | 654 | */ |
655 | void ir_keydown(struct rc_dev *dev, int scancode, u8 toggle) | 655 | void rc_keydown(struct rc_dev *dev, int scancode, u8 toggle) |
656 | { | 656 | { |
657 | unsigned long flags; | 657 | unsigned long flags; |
658 | u32 keycode = ir_g_keycode_from_table(dev, scancode); | 658 | u32 keycode = rc_g_keycode_from_table(dev, scancode); |
659 | 659 | ||
660 | spin_lock_irqsave(&dev->keylock, flags); | 660 | spin_lock_irqsave(&dev->keylock, flags); |
661 | ir_do_keydown(dev, scancode, keycode, toggle); | 661 | ir_do_keydown(dev, scancode, keycode, toggle); |
@@ -666,10 +666,10 @@ void ir_keydown(struct rc_dev *dev, int scancode, u8 toggle) | |||
666 | } | 666 | } |
667 | spin_unlock_irqrestore(&dev->keylock, flags); | 667 | spin_unlock_irqrestore(&dev->keylock, flags); |
668 | } | 668 | } |
669 | EXPORT_SYMBOL_GPL(ir_keydown); | 669 | EXPORT_SYMBOL_GPL(rc_keydown); |
670 | 670 | ||
671 | /** | 671 | /** |
672 | * ir_keydown_notimeout() - generates input event for a key press without | 672 | * rc_keydown_notimeout() - generates input event for a key press without |
673 | * an automatic keyup event at a later time | 673 | * an automatic keyup event at a later time |
674 | * @dev: the struct rc_dev descriptor of the device | 674 | * @dev: the struct rc_dev descriptor of the device |
675 | * @scancode: the scancode that we're seeking | 675 | * @scancode: the scancode that we're seeking |
@@ -677,18 +677,18 @@ EXPORT_SYMBOL_GPL(ir_keydown); | |||
677 | * support toggle values, this should be set to zero) | 677 | * support toggle values, this should be set to zero) |
678 | * | 678 | * |
679 | * This routine is used to signal that a key has been pressed on the | 679 | * This routine is used to signal that a key has been pressed on the |
680 | * remote control. The driver must manually call ir_keyup() at a later stage. | 680 | * remote control. The driver must manually call rc_keyup() at a later stage. |
681 | */ | 681 | */ |
682 | void ir_keydown_notimeout(struct rc_dev *dev, int scancode, u8 toggle) | 682 | void rc_keydown_notimeout(struct rc_dev *dev, int scancode, u8 toggle) |
683 | { | 683 | { |
684 | unsigned long flags; | 684 | unsigned long flags; |
685 | u32 keycode = ir_g_keycode_from_table(dev, scancode); | 685 | u32 keycode = rc_g_keycode_from_table(dev, scancode); |
686 | 686 | ||
687 | spin_lock_irqsave(&dev->keylock, flags); | 687 | spin_lock_irqsave(&dev->keylock, flags); |
688 | ir_do_keydown(dev, scancode, keycode, toggle); | 688 | ir_do_keydown(dev, scancode, keycode, toggle); |
689 | spin_unlock_irqrestore(&dev->keylock, flags); | 689 | spin_unlock_irqrestore(&dev->keylock, flags); |
690 | } | 690 | } |
691 | EXPORT_SYMBOL_GPL(ir_keydown_notimeout); | 691 | EXPORT_SYMBOL_GPL(rc_keydown_notimeout); |
692 | 692 | ||
693 | static int ir_open(struct input_dev *idev) | 693 | static int ir_open(struct input_dev *idev) |
694 | { | 694 | { |
diff --git a/drivers/media/video/bt8xx/bttv-input.c b/drivers/media/video/bt8xx/bttv-input.c index e4df7f85f9df..773ee6a8eed4 100644 --- a/drivers/media/video/bt8xx/bttv-input.c +++ b/drivers/media/video/bt8xx/bttv-input.c | |||
@@ -70,14 +70,14 @@ static void ir_handle_key(struct bttv *btv) | |||
70 | 70 | ||
71 | if ((ir->mask_keydown && (gpio & ir->mask_keydown)) || | 71 | if ((ir->mask_keydown && (gpio & ir->mask_keydown)) || |
72 | (ir->mask_keyup && !(gpio & ir->mask_keyup))) { | 72 | (ir->mask_keyup && !(gpio & ir->mask_keyup))) { |
73 | ir_keydown_notimeout(ir->dev, data, 0); | 73 | rc_keydown_notimeout(ir->dev, data, 0); |
74 | } else { | 74 | } else { |
75 | /* HACK: Probably, ir->mask_keydown is missing | 75 | /* HACK: Probably, ir->mask_keydown is missing |
76 | for this board */ | 76 | for this board */ |
77 | if (btv->c.type == BTTV_BOARD_WINFAST2000) | 77 | if (btv->c.type == BTTV_BOARD_WINFAST2000) |
78 | ir_keydown_notimeout(ir->dev, data, 0); | 78 | rc_keydown_notimeout(ir->dev, data, 0); |
79 | 79 | ||
80 | ir_keyup(ir->dev); | 80 | rc_keyup(ir->dev); |
81 | } | 81 | } |
82 | } | 82 | } |
83 | 83 | ||
@@ -100,9 +100,9 @@ static void ir_enltv_handle_key(struct bttv *btv) | |||
100 | gpio, data, | 100 | gpio, data, |
101 | (gpio & ir->mask_keyup) ? " up" : "up/down"); | 101 | (gpio & ir->mask_keyup) ? " up" : "up/down"); |
102 | 102 | ||
103 | ir_keydown_notimeout(ir->dev, data, 0); | 103 | rc_keydown_notimeout(ir->dev, data, 0); |
104 | if (keyup) | 104 | if (keyup) |
105 | ir_keyup(ir->dev); | 105 | rc_keyup(ir->dev); |
106 | } else { | 106 | } else { |
107 | if ((ir->last_gpio & 1 << 31) == keyup) | 107 | if ((ir->last_gpio & 1 << 31) == keyup) |
108 | return; | 108 | return; |
@@ -112,9 +112,9 @@ static void ir_enltv_handle_key(struct bttv *btv) | |||
112 | (gpio & ir->mask_keyup) ? " up" : "down"); | 112 | (gpio & ir->mask_keyup) ? " up" : "down"); |
113 | 113 | ||
114 | if (keyup) | 114 | if (keyup) |
115 | ir_keyup(ir->dev); | 115 | rc_keyup(ir->dev); |
116 | else | 116 | else |
117 | ir_keydown_notimeout(ir->dev, data, 0); | 117 | rc_keydown_notimeout(ir->dev, data, 0); |
118 | } | 118 | } |
119 | 119 | ||
120 | ir->last_gpio = data | keyup; | 120 | ir->last_gpio = data | keyup; |
@@ -232,7 +232,7 @@ void bttv_rc5_timer_end(unsigned long data) | |||
232 | u32 instr = RC5_INSTR(rc5); | 232 | u32 instr = RC5_INSTR(rc5); |
233 | 233 | ||
234 | /* Good code */ | 234 | /* Good code */ |
235 | ir_keydown(ir->dev, instr, toggle); | 235 | rc_keydown(ir->dev, instr, toggle); |
236 | dprintk(KERN_INFO DEVNAME ":" | 236 | dprintk(KERN_INFO DEVNAME ":" |
237 | " instruction %x, toggle %x\n", | 237 | " instruction %x, toggle %x\n", |
238 | instr, toggle); | 238 | instr, toggle); |
diff --git a/drivers/media/video/cx88/cx88-input.c b/drivers/media/video/cx88/cx88-input.c index a73033846fce..cfeba4c08715 100644 --- a/drivers/media/video/cx88/cx88-input.c +++ b/drivers/media/video/cx88/cx88-input.c | |||
@@ -123,26 +123,26 @@ static void cx88_ir_handle_key(struct cx88_IR *ir) | |||
123 | 123 | ||
124 | data = (data << 4) | ((gpio_key & 0xf0) >> 4); | 124 | data = (data << 4) | ((gpio_key & 0xf0) >> 4); |
125 | 125 | ||
126 | ir_keydown(ir->dev, data, 0); | 126 | rc_keydown(ir->dev, data, 0); |
127 | 127 | ||
128 | } else if (ir->mask_keydown) { | 128 | } else if (ir->mask_keydown) { |
129 | /* bit set on keydown */ | 129 | /* bit set on keydown */ |
130 | if (gpio & ir->mask_keydown) | 130 | if (gpio & ir->mask_keydown) |
131 | ir_keydown_notimeout(ir->dev, data, 0); | 131 | rc_keydown_notimeout(ir->dev, data, 0); |
132 | else | 132 | else |
133 | ir_keyup(ir->dev); | 133 | rc_keyup(ir->dev); |
134 | 134 | ||
135 | } else if (ir->mask_keyup) { | 135 | } else if (ir->mask_keyup) { |
136 | /* bit cleared on keydown */ | 136 | /* bit cleared on keydown */ |
137 | if (0 == (gpio & ir->mask_keyup)) | 137 | if (0 == (gpio & ir->mask_keyup)) |
138 | ir_keydown_notimeout(ir->dev, data, 0); | 138 | rc_keydown_notimeout(ir->dev, data, 0); |
139 | else | 139 | else |
140 | ir_keyup(ir->dev); | 140 | rc_keyup(ir->dev); |
141 | 141 | ||
142 | } else { | 142 | } else { |
143 | /* can't distinguish keydown/up :-/ */ | 143 | /* can't distinguish keydown/up :-/ */ |
144 | ir_keydown_notimeout(ir->dev, data, 0); | 144 | rc_keydown_notimeout(ir->dev, data, 0); |
145 | ir_keyup(ir->dev); | 145 | rc_keyup(ir->dev); |
146 | } | 146 | } |
147 | } | 147 | } |
148 | 148 | ||
diff --git a/drivers/media/video/em28xx/em28xx-input.c b/drivers/media/video/em28xx/em28xx-input.c index b7d3999f0417..e32eb38564e6 100644 --- a/drivers/media/video/em28xx/em28xx-input.c +++ b/drivers/media/video/em28xx/em28xx-input.c | |||
@@ -297,12 +297,12 @@ static void em28xx_ir_handle_key(struct em28xx_IR *ir) | |||
297 | poll_result.toggle_bit, poll_result.read_count, | 297 | poll_result.toggle_bit, poll_result.read_count, |
298 | poll_result.rc_address, poll_result.rc_data[0]); | 298 | poll_result.rc_address, poll_result.rc_data[0]); |
299 | if (ir->full_code) | 299 | if (ir->full_code) |
300 | ir_keydown(ir->rc, | 300 | rc_keydown(ir->rc, |
301 | poll_result.rc_address << 8 | | 301 | poll_result.rc_address << 8 | |
302 | poll_result.rc_data[0], | 302 | poll_result.rc_data[0], |
303 | poll_result.toggle_bit); | 303 | poll_result.toggle_bit); |
304 | else | 304 | else |
305 | ir_keydown(ir->rc, | 305 | rc_keydown(ir->rc, |
306 | poll_result.rc_data[0], | 306 | poll_result.rc_data[0], |
307 | poll_result.toggle_bit); | 307 | poll_result.toggle_bit); |
308 | 308 | ||
diff --git a/drivers/media/video/ir-kbd-i2c.c b/drivers/media/video/ir-kbd-i2c.c index 83662a4ff73c..c77ea53f50d7 100644 --- a/drivers/media/video/ir-kbd-i2c.c +++ b/drivers/media/video/ir-kbd-i2c.c | |||
@@ -252,7 +252,7 @@ static void ir_key_poll(struct IR_i2c *ir) | |||
252 | } | 252 | } |
253 | 253 | ||
254 | if (rc) | 254 | if (rc) |
255 | ir_keydown(ir->rc, ir_key, 0); | 255 | rc_keydown(ir->rc, ir_key, 0); |
256 | } | 256 | } |
257 | 257 | ||
258 | static void ir_work(struct work_struct *work) | 258 | static void ir_work(struct work_struct *work) |
diff --git a/drivers/media/video/saa7134/saa7134-input.c b/drivers/media/video/saa7134/saa7134-input.c index 900e7985d9b3..cd39aea30389 100644 --- a/drivers/media/video/saa7134/saa7134-input.c +++ b/drivers/media/video/saa7134/saa7134-input.c | |||
@@ -89,25 +89,25 @@ static int build_key(struct saa7134_dev *dev) | |||
89 | switch (dev->board) { | 89 | switch (dev->board) { |
90 | case SAA7134_BOARD_KWORLD_PLUS_TV_ANALOG: | 90 | case SAA7134_BOARD_KWORLD_PLUS_TV_ANALOG: |
91 | if (data == ir->mask_keycode) | 91 | if (data == ir->mask_keycode) |
92 | ir_keyup(ir->dev); | 92 | rc_keyup(ir->dev); |
93 | else | 93 | else |
94 | ir_keydown_notimeout(ir->dev, data, 0); | 94 | rc_keydown_notimeout(ir->dev, data, 0); |
95 | return 0; | 95 | return 0; |
96 | } | 96 | } |
97 | 97 | ||
98 | if (ir->polling) { | 98 | if (ir->polling) { |
99 | if ((ir->mask_keydown && (0 != (gpio & ir->mask_keydown))) || | 99 | if ((ir->mask_keydown && (0 != (gpio & ir->mask_keydown))) || |
100 | (ir->mask_keyup && (0 == (gpio & ir->mask_keyup)))) { | 100 | (ir->mask_keyup && (0 == (gpio & ir->mask_keyup)))) { |
101 | ir_keydown_notimeout(ir->dev, data, 0); | 101 | rc_keydown_notimeout(ir->dev, data, 0); |
102 | } else { | 102 | } else { |
103 | ir_keyup(ir->dev); | 103 | rc_keyup(ir->dev); |
104 | } | 104 | } |
105 | } | 105 | } |
106 | else { /* IRQ driven mode - handle key press and release in one go */ | 106 | else { /* IRQ driven mode - handle key press and release in one go */ |
107 | if ((ir->mask_keydown && (0 != (gpio & ir->mask_keydown))) || | 107 | if ((ir->mask_keydown && (0 != (gpio & ir->mask_keydown))) || |
108 | (ir->mask_keyup && (0 == (gpio & ir->mask_keyup)))) { | 108 | (ir->mask_keyup && (0 == (gpio & ir->mask_keyup)))) { |
109 | ir_keydown_notimeout(ir->dev, data, 0); | 109 | rc_keydown_notimeout(ir->dev, data, 0); |
110 | ir_keyup(ir->dev); | 110 | rc_keyup(ir->dev); |
111 | } | 111 | } |
112 | } | 112 | } |
113 | 113 | ||