[media] dvb_usb_v2: use keyword const for USB ID table
authorAntti Palosaari <crope@iki.fi>
Tue, 12 Jun 2012 04:34:22 +0000 (01:34 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 4 Aug 2012 10:56:30 +0000 (07:56 -0300)
Let optimize that code to the text segment.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-usb/dvb_usb.h

index fd6237a3a4ceea4bdda29e035ebd80e1e4553c46..b4438173b25cad9608688541310156b6b0a79cfa 100644 (file)
@@ -32,7 +32,7 @@ struct dvb_usb_driver_info {
        .match_flags = USB_DEVICE_ID_MATCH_DEVICE, \
        .idVendor = (vend), \
        .idProduct = (prod), \
-       .driver_info = (kernel_ulong_t) &((struct dvb_usb_driver_info) { \
+       .driver_info = (kernel_ulong_t) &((const struct dvb_usb_driver_info) { \
                .props = (props_), \
                .name = (name_), \
                .rc_map = (rc), \