Commit a37c2efc authored by Nishka Dasgupta's avatar Nishka Dasgupta Committed by Mauro Carvalho Chehab

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: default avatarNishka Dasgupta <nishkadg.linux@gmail.com>
Signed-off-by: default avatarSean Young <sean@mess.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent b501b09a
...@@ -217,7 +217,7 @@ static const struct file_operations fdtv_ca_fops = { ...@@ -217,7 +217,7 @@ static const struct file_operations fdtv_ca_fops = {
.llseek = noop_llseek, .llseek = noop_llseek,
}; };
static struct dvb_device fdtv_ca = { static const struct dvb_device fdtv_ca = {
.users = 1, .users = 1,
.readers = 1, .readers = 1,
.writers = 1, .writers = 1,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment