aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/rc/rc-main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/rc/rc-main.c')
-rw-r--r--drivers/media/rc/rc-main.c36
1 files changed, 18 insertions, 18 deletions
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 */
493u32 ir_g_keycode_from_table(struct rc_dev *dev, u32 scancode) 493u32 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}
514EXPORT_SYMBOL_GPL(ir_g_keycode_from_table); 514EXPORT_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 */
541void ir_keyup(struct rc_dev *dev) 541void 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}
549EXPORT_SYMBOL_GPL(ir_keyup); 549EXPORT_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 */
587void ir_repeat(struct rc_dev *dev) 587void 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)
601out: 601out:
602 spin_unlock_irqrestore(&dev->keylock, flags); 602 spin_unlock_irqrestore(&dev->keylock, flags);
603} 603}
604EXPORT_SYMBOL_GPL(ir_repeat); 604EXPORT_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 */
655void ir_keydown(struct rc_dev *dev, int scancode, u8 toggle) 655void 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}
669EXPORT_SYMBOL_GPL(ir_keydown); 669EXPORT_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 */
682void ir_keydown_notimeout(struct rc_dev *dev, int scancode, u8 toggle) 682void 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}
691EXPORT_SYMBOL_GPL(ir_keydown_notimeout); 691EXPORT_SYMBOL_GPL(rc_keydown_notimeout);
692 692
693static int ir_open(struct input_dev *idev) 693static int ir_open(struct input_dev *idev)
694{ 694{