summaryrefslogtreecommitdiffstats
path: root/drivers/media/rc/img-ir/img-ir-hw.h
diff options
context:
space:
mode:
authorSifan Naeem <sifan.naeem@imgtec.com>2014-12-11 21:06:23 +0100
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2014-12-23 18:12:57 +0100
commit33e01833268d2f006e599b863a21d4e219f96bd7 (patch)
tree28c47f3ec8522ecff1867c25007ebae8e3c6e4df /drivers/media/rc/img-ir/img-ir-hw.h
parent[media] rc: img-ir: add scancode requests to a struct (diff)
downloadlinux-33e01833268d2f006e599b863a21d4e219f96bd7.tar.xz
linux-33e01833268d2f006e599b863a21d4e219f96bd7.zip
[media] rc: img-ir: pass toggle bit to the rc driver
Add toggle bit to struct img_ir_scancode_req so that protocols can provide it to img_ir_handle_data(), and pass that toggle bit up to rc_keydown instead of 0. This is needed for the upcoming rc-5 and rc-6 patches. Signed-off-by: Sifan Naeem <sifan.naeem@imgtec.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/rc/img-ir/img-ir-hw.h')
-rw-r--r--drivers/media/rc/img-ir/img-ir-hw.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/rc/img-ir/img-ir-hw.h b/drivers/media/rc/img-ir/img-ir-hw.h
index aeef3d1dd30d..beac3a6c4660 100644
--- a/drivers/media/rc/img-ir/img-ir-hw.h
+++ b/drivers/media/rc/img-ir/img-ir-hw.h
@@ -138,10 +138,12 @@ struct img_ir_timing_regvals {
* RC_TYPE_UNKNOWN).
* @scancode: Scan code of received message (must be written by
* handler if IMG_IR_SCANCODE is returned).
+ * @toggle: Toggle bit (defaults to 0).
*/
struct img_ir_scancode_req {
enum rc_type protocol;
u32 scancode;
+ u8 toggle;
};
/**