summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-12-14 02:16:36 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-02-26 15:10:23 -0300
commit53f870228db0855f2031270ba5774dab0f33facd (patch)
tree1bfb5fee77f174f13f98404788970cd3c3a7b772 /include
parente93854da880d6dc357c00625d8371b6a926fd19b (diff)
downloadblackbird-op-linux-53f870228db0855f2031270ba5774dab0f33facd.tar.gz
blackbird-op-linux-53f870228db0855f2031270ba5774dab0f33facd.zip
V4L/DVB (13635): ir-core: Implement protocol table type reading
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/media/ir-core.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/media/ir-core.h b/include/media/ir-core.h
index dbdffd1458fb..a6d07dede09f 100644
--- a/include/media/ir-core.h
+++ b/include/media/ir-core.h
@@ -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 */
OpenPOWER on IntegriCloud