summaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
Diffstat (limited to 'include/media')
-rw-r--r--include/media/ir-common.h1
-rw-r--r--include/media/ir-core.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/include/media/ir-common.h b/include/media/ir-common.h
index 87f2ec78deb..e403a9a5281 100644
--- a/include/media/ir-common.h
+++ b/include/media/ir-common.h
@@ -50,6 +50,7 @@ struct card_ir {
struct ir_input_state ir;
char name[32];
char phys[32];
+ int users;
u32 running:1;
struct ir_dev_props props;
diff --git a/include/media/ir-core.h b/include/media/ir-core.h
index c704fa7cc11..9a2f3084ffe 100644
--- a/include/media/ir-core.h
+++ b/include/media/ir-core.h
@@ -56,6 +56,8 @@ struct ir_dev_props {
unsigned long allowed_protos;
void *priv;
int (*change_protocol)(void *priv, u64 ir_type);
+ int (*open)(void *priv);
+ void (*close)(void *priv);
};
struct ir_raw_event {