Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: firewire: Make structure fdtv_ca constant

Static structure fdtv_ca, of type dvb_device, is only used when it is
passed as the third argument to function dvb_register_device(). However,
in the definition of dvb_register_device, the third parameter is
declared as constant. Hence make fdtv_ca const as well.
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>

authored by

Nishka Dasgupta and committed by
Mauro Carvalho Chehab
a37c2efc b501b09a

+1 -1
+1 -1
drivers/media/firewire/firedtv-ci.c
··· 217 217 .llseek = noop_llseek, 218 218 }; 219 219 220 - static struct dvb_device fdtv_ca = { 220 + static const struct dvb_device fdtv_ca = { 221 221 .users = 1, 222 222 .readers = 1, 223 223 .writers = 1,