diff options
author | Andy Walls <awalls@md.metrocast.net> | 2010-06-27 17:17:06 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-08-02 15:31:28 -0300 |
commit | eeefae532e723e8ce62664cb1d299a0baad50f35 (patch) | |
tree | 9f26290e5e06afcabe0ccae5d050bbb4df8e5196 /drivers/media/video/cx23885/cx23885.h | |
parent | b192ca983746585e807259414f8d6f58cb28311f (diff) | |
download | op-kernel-dev-eeefae532e723e8ce62664cb1d299a0baad50f35.zip op-kernel-dev-eeefae532e723e8ce62664cb1d299a0baad50f35.tar.gz |
V4L/DVB: cx23885: Convert from struct card_ir to struct cx23885_ir_input for IR Rx
Move from the generic, shared card_ir state structure to a cx23885 driver
specific IR state structure in anticipation of moving to the new IR pulse
decoders in the IR core.
Fix up the card name truncation in the dmesg log while we're at it,
by avoiding using fixed length string storage in our new IR state
structure.
Signed-off-by: Andy Walls <awalls@md.metrocast.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx23885/cx23885.h')
-rw-r--r-- | drivers/media/video/cx23885/cx23885.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/drivers/media/video/cx23885/cx23885.h b/drivers/media/video/cx23885/cx23885.h index 8d6a55e..25167dd 100644 --- a/drivers/media/video/cx23885/cx23885.h +++ b/drivers/media/video/cx23885/cx23885.h @@ -30,6 +30,7 @@ #include <media/tveeprom.h> #include <media/videobuf-dma-sg.h> #include <media/videobuf-dvb.h> +#include <media/ir-common.h> #include "btcx-risc.h" #include "cx23885-reg.h" @@ -304,6 +305,22 @@ struct cx23885_tsport { void *port_priv; }; +struct cx23885_ir_input { + struct input_dev *dev; + struct ir_input_state ir; + char *name; + char *phys; + + int start; + int addr; + int rc5_key_timeout; + struct timer_list timer_keyup; + u32 last_rc5; + u32 last_bit; + u32 code; + int active; +}; + struct cx23885_dev { atomic_t refcount; struct v4l2_device v4l2_dev; @@ -363,7 +380,7 @@ struct cx23885_dev { struct work_struct ir_tx_work; unsigned long ir_tx_notifications; - struct card_ir *ir_input; + struct cx23885_ir_input *ir_input; atomic_t ir_input_stopping; /* V4l */ |