From: Nishka Dasgupta Date: Mon, 19 Aug 2019 07:36:54 +0000 (-0300) Subject: media: firewire: Make structure fdtv_ca constant X-Git-Tag: for-linus-2019-09-27~105^2~45 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=a37c2efc087ce849e75ee135e1a52fd1fb2f81eb;p=linux-block.git 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 Signed-off-by: Sean Young Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/firewire/firedtv-ci.c b/drivers/media/firewire/firedtv-ci.c index a960a0ce9deb..9363d005e2b6 100644 --- a/drivers/media/firewire/firedtv-ci.c +++ b/drivers/media/firewire/firedtv-ci.c @@ -217,7 +217,7 @@ static const struct file_operations fdtv_ca_fops = { .llseek = noop_llseek, }; -static struct dvb_device fdtv_ca = { +static const struct dvb_device fdtv_ca = { .users = 1, .readers = 1, .writers = 1,