aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx23885/cx23885.h
diff options
context:
space:
mode:
authorAndy Walls <awalls@md.metrocast.net>2010-06-27 16:17:06 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-08-02 14:31:28 -0400
commiteeefae532e723e8ce62664cb1d299a0baad50f35 (patch)
tree9f26290e5e06afcabe0ccae5d050bbb4df8e5196 /drivers/media/video/cx23885/cx23885.h
parentb192ca983746585e807259414f8d6f58cb28311f (diff)
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.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/drivers/media/video/cx23885/cx23885.h b/drivers/media/video/cx23885/cx23885.h
index 8d6a55e54ee7..25167dd22ab8 100644
--- a/drivers/media/video/cx23885/cx23885.h
+++ b/drivers/media/video/cx23885/cx23885.h
@@ -30,6 +30,7 @@
30#include <media/tveeprom.h> 30#include <media/tveeprom.h>
31#include <media/videobuf-dma-sg.h> 31#include <media/videobuf-dma-sg.h>
32#include <media/videobuf-dvb.h> 32#include <media/videobuf-dvb.h>
33#include <media/ir-common.h>
33 34
34#include "btcx-risc.h" 35#include "btcx-risc.h"
35#include "cx23885-reg.h" 36#include "cx23885-reg.h"
@@ -304,6 +305,22 @@ struct cx23885_tsport {
304 void *port_priv; 305 void *port_priv;
305}; 306};
306 307
308struct cx23885_ir_input {
309 struct input_dev *dev;
310 struct ir_input_state ir;
311 char *name;
312 char *phys;
313
314 int start;
315 int addr;
316 int rc5_key_timeout;
317 struct timer_list timer_keyup;
318 u32 last_rc5;
319 u32 last_bit;
320 u32 code;
321 int active;
322};
323
307struct cx23885_dev { 324struct cx23885_dev {
308 atomic_t refcount; 325 atomic_t refcount;
309 struct v4l2_device v4l2_dev; 326 struct v4l2_device v4l2_dev;
@@ -363,7 +380,7 @@ struct cx23885_dev {
363 struct work_struct ir_tx_work; 380 struct work_struct ir_tx_work;
364 unsigned long ir_tx_notifications; 381 unsigned long ir_tx_notifications;
365 382
366 struct card_ir *ir_input; 383 struct cx23885_ir_input *ir_input;
367 atomic_t ir_input_stopping; 384 atomic_t ir_input_stopping;
368 385
369 /* V4l */ 386 /* V4l */