aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/IR/ir-keytable.c
diff options
context:
space:
mode:
authorJarod Wilson <jarod@redhat.com>2010-09-15 14:31:12 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-10-20 23:06:07 -0400
commitee08940531193ccce680ca3c2f17ecc497c4bb67 (patch)
tree5050592376ff4410e091f205c28510de345c0103 /drivers/media/IR/ir-keytable.c
parentc72ba8e6ae7376d20e509a9a54a2dd45fb483fc2 (diff)
V4L/DVB: IR: export ir_keyup so imon driver can use it directly
The imon driver currently reimplements its own version of ir_keyup (along with key release timer functionality also already present in the core IR code). A follow-up imon patch will make use of ir_keyup and the IR stack's key release code. Trivial extraction from David Härdeman's pending rc-core merge and device interface abstraction patchset to facilitate merging a patch based on his imon input dev split patch ahead of the larger churn, which is slated for post-2.6.37-rc1 (after Dmitry's large keycode patches are merged in mainline). Signed-off-by: Jarod Wilson <jarod@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/IR/ir-keytable.c')
-rw-r--r--drivers/media/IR/ir-keytable.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/IR/ir-keytable.c b/drivers/media/IR/ir-keytable.c
index 7961d59f5cac..59510cd33419 100644
--- a/drivers/media/IR/ir-keytable.c
+++ b/drivers/media/IR/ir-keytable.c
@@ -285,7 +285,7 @@ EXPORT_SYMBOL_GPL(ir_g_keycode_from_table);
285 * This routine is used to signal that a key has been released on the 285 * This routine is used to signal that a key has been released on the
286 * remote control. It reports a keyup input event via input_report_key(). 286 * remote control. It reports a keyup input event via input_report_key().
287 */ 287 */
288static void ir_keyup(struct ir_input_dev *ir) 288void ir_keyup(struct ir_input_dev *ir)
289{ 289{
290 if (!ir->keypressed) 290 if (!ir->keypressed)
291 return; 291 return;
@@ -295,6 +295,7 @@ static void ir_keyup(struct ir_input_dev *ir)
295 input_sync(ir->input_dev); 295 input_sync(ir->input_dev);
296 ir->keypressed = false; 296 ir->keypressed = false;
297} 297}
298EXPORT_SYMBOL_GPL(ir_keyup);
298 299
299/** 300/**
300 * ir_timer_keyup() - generates a keyup event after a timeout 301 * ir_timer_keyup() - generates a keyup event after a timeout