aboutsummaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2010-03-21 12:15:16 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-05-18 00:52:56 -0300
commit6660de568d164e4eda6617dadcb999c96e62203f (patch)
treeef86833336b7423443531afa58dc5781b4f97c2a /include/media
parenta3572c34da8dacc78a629211a91cf34e9b408701 (diff)
downloadkernel_samsung_espresso10-6660de568d164e4eda6617dadcb999c96e62203f.zip
kernel_samsung_espresso10-6660de568d164e4eda6617dadcb999c96e62203f.tar.gz
kernel_samsung_espresso10-6660de568d164e4eda6617dadcb999c96e62203f.tar.bz2
V4L/DVB: ir-core: add two functions to report keyup/keydown events
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media')
-rw-r--r--include/media/ir-core.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/media/ir-core.h b/include/media/ir-core.h
index 369969d..198fd61 100644
--- a/include/media/ir-core.h
+++ b/include/media/ir-core.h
@@ -72,6 +72,10 @@ struct ir_input_dev {
unsigned long devno; /* device number */
const struct ir_dev_props *props; /* Device properties */
struct ir_raw_event_ctrl *raw; /* for raw pulse/space events */
+
+ /* key info - needed by IR keycode handlers */
+ u32 keycode; /* linux key code */
+ int keypressed; /* current state */
};
#define to_ir_input_dev(_attr) container_of(_attr, struct ir_input_dev, attr)