[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 fd6237a..b443817 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), \