From 1c0e0ee580c476234b5ea410f5263fcb27d96389 Mon Sep 17 00:00:00 2001 From: Jarod Wilson Date: Fri, 16 Apr 2010 18:27:58 -0300 Subject: [PATCH] V4L/DVB: ir-core: make ir_g_keycode_from_table a public function 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 Signed-off-by: Mauro Carvalho Chehab --- drivers/media/IR/ir-core-priv.h | 7 ------- include/media/ir-core.h | 1 + 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/media/IR/ir-core-priv.h b/drivers/media/IR/ir-core-priv.h index fb2622a..8c1f846 100644 --- a/drivers/media/IR/ir-core-priv.h +++ b/drivers/media/IR/ir-core-priv.h @@ -58,13 +58,6 @@ struct ir_raw_event_ctrl { #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 */ diff --git a/include/media/ir-core.h b/include/media/ir-core.h index ab3bd30..51e8eb3 100644 --- a/include/media/ir-core.h +++ b/include/media/ir-core.h @@ -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 */ -- 1.8.2.3