diff options
author | Nishka Dasgupta <nishkadg.linux@gmail.com> | 2019-08-19 04:36:54 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-08-21 18:39:55 -0300 |
commit | a37c2efc087ce849e75ee135e1a52fd1fb2f81eb (patch) | |
tree | 149b02586cd99de69e4572803d70a3b17c96351c /drivers/media/firewire | |
parent | b501b09ae8c02bc38479c18b9ccb9946c6f252dc (diff) | |
download | lwn-a37c2efc087ce849e75ee135e1a52fd1fb2f81eb.tar.gz lwn-a37c2efc087ce849e75ee135e1a52fd1fb2f81eb.zip |
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>
Diffstat (limited to 'drivers/media/firewire')
-rw-r--r-- | drivers/media/firewire/firedtv-ci.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, |