Skip to content

Commit

Permalink
V4L/DVB: ir-core: make ir_g_keycode_from_table a public function
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jarod Wilson authored and Mauro Carvalho Chehab committed May 19, 2010
1 parent d62e85a commit 1c0e0ee
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
7 changes: 0 additions & 7 deletions drivers/media/IR/ir-core-priv.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions include/media/ir-core.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down

0 comments on commit 1c0e0ee

Please sign in to comment.