diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-03-31 19:40:35 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-05-18 05:53:03 +0200 |
commit | 716aab44df8bb9bdf16abea9013890274329b61f (patch) | |
tree | b83baf34bf18d35d51318044d8ea1ae80a275304 /include/media/ir-core.h | |
parent | V4L/DVB: ir-core: rename sysfs remote controller class from ir to rc (diff) | |
download | linux-716aab44df8bb9bdf16abea9013890274329b61f.tar.xz linux-716aab44df8bb9bdf16abea9013890274329b61f.zip |
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 '')
-rw-r--r-- | include/media/ir-core.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/media/ir-core.h b/include/media/ir-core.h index c704fa7cc11e..9a2f3084ffec 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 { |