aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/bt8xx/bttv-input.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2010-11-17 10:05:29 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-12-29 08:16:49 -0200
commita6e3b81f6198654207c4e972e7ed91931e53e93c (patch)
tree45653b8a6a40d6c6b2ae2d31bdca69a0900fa478 /drivers/media/video/bt8xx/bttv-input.c
parent[media] rc: remove ir-common module (diff)
downloadlinux-dev-a6e3b81f6198654207c4e972e7ed91931e53e93c.tar.xz
linux-dev-a6e3b81f6198654207c4e972e7ed91931e53e93c.zip
[media] rc: Remove ir-common.h
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/bt8xx/bttv-input.c')
-rw-r--r--drivers/media/video/bt8xx/bttv-input.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/media/video/bt8xx/bttv-input.c b/drivers/media/video/bt8xx/bttv-input.c
index e8f60ab58db6..e4df7f85f9df 100644
--- a/drivers/media/video/bt8xx/bttv-input.c
+++ b/drivers/media/video/bt8xx/bttv-input.c
@@ -147,6 +147,11 @@ static void bttv_input_timer(unsigned long data)
* testing.
*/
+#define RC5_START(x) (((x) >> 12) & 3)
+#define RC5_TOGGLE(x) (((x) >> 11) & 1)
+#define RC5_ADDR(x) (((x) >> 6) & 31)
+#define RC5_INSTR(x) ((x) & 63)
+
/* decode raw bit pattern to RC5 code */
static u32 bttv_rc5_decode(unsigned int code)
{