Skip to content

Commit a37c2ef

Browse files
gaurijhangianimchehab
authored andcommitted
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>
1 parent b501b09 commit a37c2ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/media/firewire/firedtv-ci.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ static const struct file_operations fdtv_ca_fops = {
217217
.llseek = noop_llseek,
218218
};
219219

220-
static struct dvb_device fdtv_ca = {
220+
static const struct dvb_device fdtv_ca = {
221221
.users = 1,
222222
.readers = 1,
223223
.writers = 1,

0 commit comments

Comments
 (0)