V4L/DVB (13635): ir-core: Implement protocol table type reading

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Mauro Carvalho Chehab
2009-12-14 02:16:36 -03:00
parent e93854da88
commit 53f870228d
2 changed files with 31 additions and 3 deletions

View File

@@ -44,9 +44,10 @@ struct ir_scancode_table {
struct ir_dev_props {
unsigned long allowed_protos;
void *priv;
int (*change_protocol)(void *priv, unsigned long protocol);
int (*change_protocol)(void *priv, enum ir_type ir_type);
};
struct ir_input_dev {
struct input_dev *dev; /* Input device*/
struct ir_scancode_table rc_tab; /* scan/key table */
@@ -55,6 +56,7 @@ struct ir_input_dev {
struct device *class_dev; /* virtual class dev */
const struct ir_dev_props *props; /* Device properties */
};
#define to_ir_input_dev(_attr) container_of(_attr, struct ir_input_dev, attr)
/* Routines from ir-keytable.c */