summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx231xx/cx231xx.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2010-11-11 08:14:16 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-12-29 08:16:38 -0200
commit141bb0dc2d0ad03202aef7c070555cd970ca6bf9 (patch)
tree7a90847af8e37a438e4b3ccdcf24c9d3c63c3149 /drivers/media/video/cx231xx/cx231xx.h
parent2eb258327722de3ed4d84ce1b9add2bad21a0ec4 (diff)
[media] cx231xx: Fix i2c support at cx231xx-input
There was a bug at cx231xx-input, where it were registering the remote controls twice, one via ir-kbd-i2c and another directly. Also, the patch that added rc_register_device() broke compilation for it. This patch fixes cx231xx-input by fixing the depends on, to point to the new symbol, and initializing the scanmask via platform_data. While here, also fix Kconfig symbol change for IR core dependencies. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx231xx/cx231xx.h')
-rw-r--r--drivers/media/video/cx231xx/cx231xx.h21
1 files changed, 1 insertions, 20 deletions
diff --git a/drivers/media/video/cx231xx/cx231xx.h b/drivers/media/video/cx231xx/cx231xx.h
index c439e778c4b..fcccc9d2a08 100644
--- a/drivers/media/video/cx231xx/cx231xx.h
+++ b/drivers/media/video/cx231xx/cx231xx.h
@@ -602,25 +602,6 @@ struct cx231xx_tsport {
void *port_priv;
};
-struct cx231xx_ir_t {
- struct input_dev *input_dev;
- char name[40];
- char phys[32];
-
-#if 0
- /*
- * Due to a Kconfig change, cx231xx-input is not being compiled.
- * This structure disappeared, but other fixes are also needed.
- * So, as a workaround, let's just comment this struct and let a
- * latter patch fix it.
- */
- struct ir_dev_props props;
-#endif
-
- /* I2C keyboard data */
- struct IR_i2c_init_data init_data;
-};
-
/* main device struct */
struct cx231xx {
/* generic device properties */
@@ -631,7 +612,7 @@ struct cx231xx {
struct cx231xx_board board;
/* For I2C IR support */
- struct cx231xx_ir_t ir;
+ struct IR_i2c_init_data init_data;
unsigned int stream_on:1; /* Locks streams */
unsigned int vbi_stream_on:1; /* Locks streams for VBI */