V4L/DVB (13538): ir-common: Use a dynamic keycode table
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
@@ -54,6 +54,8 @@ struct ir_input_state {
|
||||
/* configuration */
|
||||
int ir_type;
|
||||
|
||||
struct ir_scancode_table keytable;
|
||||
|
||||
/* key info */
|
||||
u32 ir_key; /* ir scancode */
|
||||
u32 keycode; /* linux key code */
|
||||
@@ -121,6 +123,10 @@ u32 ir_g_keycode_from_table(struct input_dev *input_dev,
|
||||
|
||||
int ir_set_keycode_table(struct input_dev *input_dev,
|
||||
struct ir_scancode_table *rc_tab);
|
||||
|
||||
int ir_roundup_tablesize(int n_elems);
|
||||
int ir_copy_table(struct ir_scancode_table *destin,
|
||||
const struct ir_scancode_table *origin);
|
||||
void ir_input_free(struct input_dev *input_dev);
|
||||
|
||||
/* scancode->keycode map tables from ir-keymaps.c */
|
||||
|
Reference in New Issue
Block a user