Эх сурвалжийг харах

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 <monamagarwal123@gmail.com>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Monam Agarwal 11 жил өмнө
parent
commit
206654728b

+ 1 - 1
drivers/staging/dgnc/dgnc_driver.c

@@ -88,7 +88,7 @@ module_exit(dgnc_cleanup_module);
 /*
 /*
  * File operations permitted on Control/Management major.
  * File operations permitted on Control/Management major.
  */
  */
-static struct file_operations dgnc_BoardFops =
+static const struct file_operations dgnc_BoardFops =
 {
 {
 	.owner		=	THIS_MODULE,
 	.owner		=	THIS_MODULE,
 	.unlocked_ioctl =  	dgnc_mgmt_ioctl,
 	.unlocked_ioctl =  	dgnc_mgmt_ioctl,