diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-03-21 11:15:16 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-05-17 23:52:56 -0400 |
commit | 6660de568d164e4eda6617dadcb999c96e62203f (patch) | |
tree | ef86833336b7423443531afa58dc5781b4f97c2a /include/media | |
parent | a3572c34da8dacc78a629211a91cf34e9b408701 (diff) |
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.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/media/ir-core.h b/include/media/ir-core.h index 369969d90779..198fd61f0da9 100644 --- a/include/media/ir-core.h +++ b/include/media/ir-core.h | |||
@@ -72,6 +72,10 @@ struct ir_input_dev { | |||
72 | unsigned long devno; /* device number */ | 72 | unsigned long devno; /* device number */ |
73 | const struct ir_dev_props *props; /* Device properties */ | 73 | const struct ir_dev_props *props; /* Device properties */ |
74 | struct ir_raw_event_ctrl *raw; /* for raw pulse/space events */ | 74 | struct ir_raw_event_ctrl *raw; /* for raw pulse/space events */ |
75 | |||
76 | /* key info - needed by IR keycode handlers */ | ||
77 | u32 keycode; /* linux key code */ | ||
78 | int keypressed; /* current state */ | ||
75 | }; | 79 | }; |
76 | 80 | ||
77 | #define to_ir_input_dev(_attr) container_of(_attr, struct ir_input_dev, attr) | 81 | #define to_ir_input_dev(_attr) container_of(_attr, struct ir_input_dev, attr) |