media: ec168: Make structure ec168_props constant

The static structure ec168_props, of type dvb_usb_device_properties, is
used only once, when it is assigned to field props of the constant
structure ec168_driver_info. As this means that ec168_props will never be
modified, make it const as well in order to prevent unintended
modification of its fields.
Issue found with Coccinelle.

Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
Nishka Dasgupta 2019-08-19 04:38:18 -03:00 committed by Mauro Carvalho Chehab
parent a37c2efc08
commit 05fa782e25
1 changed files with 1 additions and 1 deletions

View File

@ -309,7 +309,7 @@ static int ec168_streaming_ctrl(struct dvb_frontend *fe, int onoff)
/* DVB USB Driver stuff */ /* DVB USB Driver stuff */
/* bInterfaceNumber 0 is HID /* bInterfaceNumber 0 is HID
* bInterfaceNumber 1 is DVB-T */ * bInterfaceNumber 1 is DVB-T */
static struct dvb_usb_device_properties ec168_props = { static const struct dvb_usb_device_properties ec168_props = {
.driver_name = KBUILD_MODNAME, .driver_name = KBUILD_MODNAME,
.owner = THIS_MODULE, .owner = THIS_MODULE,
.adapter_nr = adapter_nr, .adapter_nr = adapter_nr,