From: Monam Agarwal Date: Fri, 7 Mar 2014 11:33:08 +0000 (+0530) Subject: Staging: dgnc: Fix struct file_operations should normally be const X-Git-Tag: v3.15-rc1~139^2~596 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=206654728b433c18b59d7c28a3ac67da2e28f0c3;p=karo-tx-linux.git Staging: dgnc: Fix struct file_operations should normally be const This patch fixes following checkpatch.pl warning: WARNING:struct file_operations should normally be const Signed-off-by: Monam Agarwal Acked-by: Paul E. McKenney Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/dgnc/dgnc_driver.c b/drivers/staging/dgnc/dgnc_driver.c index c204266cb69f..20be96d54090 100644 --- a/drivers/staging/dgnc/dgnc_driver.c +++ b/drivers/staging/dgnc/dgnc_driver.c @@ -88,7 +88,7 @@ module_exit(dgnc_cleanup_module); /* * File operations permitted on Control/Management major. */ -static struct file_operations dgnc_BoardFops = +static const struct file_operations dgnc_BoardFops = { .owner = THIS_MODULE, .unlocked_ioctl = dgnc_mgmt_ioctl,