]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] ttusb-dec: constify ttusbdecfe_config structure
authorJulia Lawall <Julia.Lawall@lip6.fr>
Fri, 13 Nov 2015 14:55:18 +0000 (12:55 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 19 Nov 2015 13:22:15 +0000 (11:22 -0200)
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 <Julia.Lawall@lip6.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/ttusb-dec/ttusb_dec.c

index a5de46f04247f82178d60366d8148a4140f7780e..4e36e24cb3a6d758f722250e47c65d2dce3e988b 100644 (file)
@@ -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
 };