diff options
author | Andy Walls <awalls@radix.net> | 2009-09-07 13:32:45 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-09-18 23:14:07 -0400 |
commit | 958411bc484d15c3c3f7579b84b57d3b9d80ff21 (patch) | |
tree | b70e991c96a93815896b110a8ea9fcb7fed8a884 /drivers/media | |
parent | 0e12e1536c1b8aaef9baeed09a8f81da393fcba6 (diff) |
V4L/DVB (12884): cx18: Eliminate warning about discarding 'const' is assignment for IR init
i2c-kbd-i2c allows a bridge driver to pass information about IR configuration,
but uses a "void *" to pass along what is essentially constant data. This
change casts a const * to a void * to remove the warning.
Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/cx18/cx18-i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/cx18/cx18-i2c.c b/drivers/media/video/cx18/cx18-i2c.c index da395fef50df..dbbf93d2eee0 100644 --- a/drivers/media/video/cx18/cx18-i2c.c +++ b/drivers/media/video/cx18/cx18-i2c.c | |||
@@ -116,7 +116,7 @@ static int cx18_i2c_new_ir(struct i2c_adapter *adap, u32 hw, const char *type, | |||
116 | /* Our default information for ir-kbd-i2c.c to use */ | 116 | /* Our default information for ir-kbd-i2c.c to use */ |
117 | switch (hw) { | 117 | switch (hw) { |
118 | case CX18_HW_Z8F0811_IR_RX_HAUP: | 118 | case CX18_HW_Z8F0811_IR_RX_HAUP: |
119 | info.platform_data = &z8f0811_ir_init_data; | 119 | info.platform_data = (void *) &z8f0811_ir_init_data; |
120 | break; | 120 | break; |
121 | default: | 121 | default: |
122 | break; | 122 | break; |