diff options
author | Andy Walls <awalls@radix.net> | 2009-11-21 11:39:28 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-05 15:41:57 -0500 |
commit | 8352619043a04785b8d20e438629b14e556fffce (patch) | |
tree | cffbda41f6f806096d7e6ff73468e0548a2bab97 /drivers/media/video/cx18/cx18-driver.h | |
parent | ad2fe2d48812029b0b674594f297d0723f7c6e8f (diff) |
V4L/DVB (13445): cx18: Use per cx18 instance init data for ir-kbd-i2c instead of const data
This change creates per cx18 instances of IR_i2c_init_data for handing over
initialization data to ir-kbd-i2c, since that module wants non-const data
even though it never modifies the data.
Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx18/cx18-driver.h')
-rw-r--r-- | drivers/media/video/cx18/cx18-driver.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/video/cx18/cx18-driver.h b/drivers/media/video/cx18/cx18-driver.h index fe767b82c9a..e3f7911a738 100644 --- a/drivers/media/video/cx18/cx18-driver.h +++ b/drivers/media/video/cx18/cx18-driver.h | |||
@@ -50,6 +50,7 @@ | |||
50 | #include <media/v4l2-ioctl.h> | 50 | #include <media/v4l2-ioctl.h> |
51 | #include <media/v4l2-device.h> | 51 | #include <media/v4l2-device.h> |
52 | #include <media/tuner.h> | 52 | #include <media/tuner.h> |
53 | #include <media/ir-kbd-i2c.h> | ||
53 | #include "cx18-mailbox.h" | 54 | #include "cx18-mailbox.h" |
54 | #include "cx18-av-core.h" | 55 | #include "cx18-av-core.h" |
55 | #include "cx23418.h" | 56 | #include "cx23418.h" |
@@ -606,6 +607,8 @@ struct cx18 { | |||
606 | struct i2c_algo_bit_data i2c_algo[2]; | 607 | struct i2c_algo_bit_data i2c_algo[2]; |
607 | struct cx18_i2c_algo_callback_data i2c_algo_cb_data[2]; | 608 | struct cx18_i2c_algo_callback_data i2c_algo_cb_data[2]; |
608 | 609 | ||
610 | struct IR_i2c_init_data ir_i2c_init_data; | ||
611 | |||
609 | /* gpio */ | 612 | /* gpio */ |
610 | u32 gpio_dir; | 613 | u32 gpio_dir; |
611 | u32 gpio_val; | 614 | u32 gpio_val; |