[PATCH] mark struct file_operations const 3
[deliverable/linux.git] / drivers / char / watchdog / pnx4008_wdt.c
index e7f0450a939d9cf686f78ba957052e15d4b1285f..ff6f1ca1e5e7119b48ace7d55843b0b6871367c6 100644 (file)
@@ -14,7 +14,6 @@
  * or implied.
  */
 
-#include <linux/config.h>
 #include <linux/module.h>
 #include <linux/moduleparam.h>
 #include <linux/types.h>
@@ -184,7 +183,7 @@ static int
 pnx4008_wdt_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
                  unsigned long arg)
 {
-       int ret = -ENOIOCTLCMD;
+       int ret = -ENOTTY;
        int time;
 
        switch (cmd) {
@@ -239,7 +238,7 @@ static int pnx4008_wdt_release(struct inode *inode, struct file *file)
        return 0;
 }
 
-static struct file_operations pnx4008_wdt_fops = {
+static const struct file_operations pnx4008_wdt_fops = {
        .owner = THIS_MODULE,
        .llseek = no_llseek,
        .write = pnx4008_wdt_write,
This page took 0.033257 seconds and 5 git commands to generate.