V4L/DVB: ir-core: make ir_g_keycode_from_table a public function
authorJarod Wilson <jarod@redhat.com>
Fri, 16 Apr 2010 21:27:58 +0000 (18:27 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 19 May 2010 15:57:40 +0000 (12:57 -0300)
The imon driver I've previously submitted and have been porting to
use ir-core needs to use ir_g_keycode_from_table, as ir_keydown is
not sufficient, due to these things having really oddball hardware
decoders in them. This just moves the function declaration from
ir-core-priv.h over to ir-core.h.

Signed-off-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/IR/ir-core-priv.h
include/media/ir-core.h

index fb2622a24ed8163fc656f154df03ab0ce0d0c080..8c1f84645eafdb97dcdef854fa12ccb5ce8beb16 100644 (file)
@@ -57,13 +57,6 @@ struct ir_raw_event_ctrl {
                -DIV_ROUND_CLOSEST(abs((duration)), (unit_len))))
 #define TO_US(duration)                ((int)TO_UNITS(duration, 1000))
 
-/*
- * Routines from ir-keytable.c to be used internally on ir-core and decoders
- */
-
-u32 ir_g_keycode_from_table(struct input_dev *input_dev,
-                           u32 scancode);
-
 /*
  * Routines from ir-sysfs.c - Meant to be called only internally inside
  * ir-core
index ab3bd30d43f11fda2736093ab0126b024988f57b..51e8eb3a3f2d8fcfc204bf7a5533d7026ecb7193 100644 (file)
@@ -124,6 +124,7 @@ void ir_input_unregister(struct input_dev *input_dev);
 
 void ir_repeat(struct input_dev *dev);
 void ir_keydown(struct input_dev *dev, int scancode, u8 toggle);
+u32 ir_g_keycode_from_table(struct input_dev *input_dev, u32 scancode);
 
 /* From ir-raw-event.c */