]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
V4L/DVB (12884): cx18: Eliminate warning about discarding 'const' is assignment for...
authorAndy Walls <awalls@radix.net>
Mon, 7 Sep 2009 17:32:45 +0000 (14:32 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 19 Sep 2009 03:14:07 +0000 (00:14 -0300)
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>
drivers/media/video/cx18/cx18-i2c.c

index da395fef50dfd93b364ac9633a398351f9099c35..dbbf93d2eee0447850b24dc5d6d529a211176801 100644 (file)
@@ -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;