1
0
Fork 0

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>
alistair/sunxi64-5.4-dsi
Nishka Dasgupta 2019-08-19 04:36:54 -03:00 committed by Mauro Carvalho Chehab
parent b501b09ae8
commit a37c2efc08
1 changed files with 1 additions and 1 deletions

View File

@ -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,