Skip to content

Commit

Permalink
V4L/DVB (12884): cx18: Eliminate warning about discarding 'const' is …
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
Andy Walls authored and Mauro Carvalho Chehab committed Sep 19, 2009
1 parent 0e12e15 commit 958411b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/cx18/cx18-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ static int cx18_i2c_new_ir(struct i2c_adapter *adap, u32 hw, const char *type,
/* Our default information for ir-kbd-i2c.c to use */
switch (hw) {
case CX18_HW_Z8F0811_IR_RX_HAUP:
info.platform_data = &z8f0811_ir_init_data;
info.platform_data = (void *) &z8f0811_ir_init_data;
break;
default:
break;
Expand Down

0 comments on commit 958411b

Please sign in to comment.