summaryrefslogtreecommitdiffstats
path: root/include/media/ir-common.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2010-03-31 14:40:35 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-05-18 00:53:03 -0300
commit716aab44df8bb9bdf16abea9013890274329b61f (patch)
treeb83baf34bf18d35d51318044d8ea1ae80a275304 /include/media/ir-common.h
parente202c15b4209f05fe109dd396463a524f4c2d3d8 (diff)
V4L/DVB: ir-core: Add callbacks for input/evdev open/close on IR core
Especially when IR needs to do polling, it generates lots of wakeups per second. This makes no sense, if the input event device is closed. Adds a callback handler to the IR hardware driver, to allow registering an open/close ops. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media/ir-common.h')
-rw-r--r--include/media/ir-common.h1
1 files changed, 1 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;