]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[WATCHDOG] struct file_operations should be const
authorWim Van Sebroeck <wim@iguana.be>
Wed, 18 Mar 2009 08:18:43 +0000 (08:18 +0000)
committerWim Van Sebroeck <wim@iguana.be>
Wed, 25 Mar 2009 09:06:18 +0000 (09:06 +0000)
Fix following warnings:
WARNING: struct file_operations should normally be const

Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/hpwdt.c
drivers/watchdog/rc32434_wdt.c

index dad4fe6e20fcadbca98b817ef10d948cfecaba33..7cf32ad96fd1e18c5ee736e362523aec8e80ac86 100644 (file)
@@ -602,7 +602,7 @@ static long hpwdt_ioctl(struct file *file, unsigned int cmd,
 /*
  *     Kernel interfaces
  */
-static struct file_operations hpwdt_fops = {
+static const struct file_operations hpwdt_fops = {
        .owner = THIS_MODULE,
        .llseek = no_llseek,
        .write = hpwdt_write,
index 071ff7bb81d109a1c9d4e2e6166a0aea99cc95fe..f6cccc9df022cbb55b04aa5fac43fcfd6413964c 100644 (file)
@@ -247,7 +247,7 @@ static long rc32434_wdt_ioctl(struct file *file, unsigned int cmd,
        return 0;
 }
 
-static struct file_operations rc32434_wdt_fops = {
+static const struct file_operations rc32434_wdt_fops = {
        .owner          = THIS_MODULE,
        .llseek         = no_llseek,
        .write          = rc32434_wdt_write,