diff options
Diffstat (limited to 'drivers/media/rc')
-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 |
8 files changed, 32 insertions, 32 deletions
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 | { |