From: Julia Lawall Date: Fri, 13 Nov 2015 14:55:18 +0000 (-0200) Subject: [media] ttusb-dec: constify ttusbdecfe_config structure X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9bca62661eac95702ed0118c578b079fa76e4a63;p=linux-beck.git [media] ttusb-dec: constify ttusbdecfe_config structure The ttusbdecfe_config structure is never modified, so declare it as const. Other references to this structure type were already declared as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/usb/ttusb-dec/ttusb_dec.c b/drivers/media/usb/ttusb-dec/ttusb_dec.c index a5de46f04247..4e36e24cb3a6 100644 --- a/drivers/media/usb/ttusb-dec/ttusb_dec.c +++ b/drivers/media/usb/ttusb-dec/ttusb_dec.c @@ -1606,7 +1606,7 @@ static int fe_send_command(struct dvb_frontend* fe, const u8 command, return ttusb_dec_send_command(dec, command, param_length, params, result_length, cmd_result); } -static struct ttusbdecfe_config fe_config = { +static const struct ttusbdecfe_config fe_config = { .send_command = fe_send_command };