]> nv-tegra.nvidia Code Review - linux-2.6.git/commitdiff
[WATCHDOG] constify function pointer tables
authorJan Engelhardt <jengelh@computergmbh.de>
Tue, 22 Jan 2008 19:48:10 +0000 (20:48 +0100)
committerWim Van Sebroeck <wim@iguana.be>
Fri, 25 Jan 2008 20:41:30 +0000 (20:41 +0000)
"static struct file_operations" should be
"static const struct file_operations".

Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/ar7_wdt.c
drivers/watchdog/bfin_wdt.c
drivers/watchdog/it8712f_wdt.c
drivers/watchdog/mpc5200_wdt.c
drivers/watchdog/mtx-1_wdt.c

index cdaab8c3d3d06e1ae1288fef3bf39207dd8284ba..2eb48c0df32c9889fa93e0d4123912f735f6f1c7 100644 (file)
@@ -279,7 +279,7 @@ static int ar7_wdt_ioctl(struct inode *inode, struct file *file,
        }
 }
 
-static struct file_operations ar7_wdt_fops = {
+static const struct file_operations ar7_wdt_fops = {
        .owner          = THIS_MODULE,
        .write          = ar7_wdt_write,
        .ioctl          = ar7_wdt_ioctl,
index 31dc7a69e90c05e89da991a0c684918c19563028..472be10f0686646cc52fe5add98b3d64ff6dff11 100644 (file)
@@ -390,7 +390,7 @@ static struct platform_driver bfin_wdt_driver = {
        .resume    = bfin_wdt_resume,
 };
 
-static struct file_operations bfin_wdt_fops = {
+static const struct file_operations bfin_wdt_fops = {
        .owner    = THIS_MODULE,
        .llseek   = no_llseek,
        .write    = bfin_wdt_write,
index 6330fc02464e0b46ccd8d832be31446735284aa0..1b6d7d1b715d57f819994e9790ac8be57c12abf3 100644 (file)
@@ -296,7 +296,7 @@ it8712f_wdt_release(struct inode *inode, struct file *file)
        return 0;
 }
 
-static struct file_operations it8712f_wdt_fops = {
+static const struct file_operations it8712f_wdt_fops = {
        .owner = THIS_MODULE,
        .llseek = no_llseek,
        .write = it8712f_wdt_write,
index 11f6a111e75b750dc6716bb19ba2aedb4cdc98aa..80a91d4cea11fff2f2a1cb05c523863f04dfbba2 100644 (file)
@@ -158,7 +158,7 @@ static int mpc5200_wdt_release(struct inode *inode, struct file *file)
        return 0;
 }
 
-static struct file_operations mpc5200_wdt_fops = {
+static const struct file_operations mpc5200_wdt_fops = {
        .owner  = THIS_MODULE,
        .write  = mpc5200_wdt_write,
        .ioctl  = mpc5200_wdt_ioctl,
index dcfd401a7ad725dc3d4a1febf7726482e1d56650..98451747d3cda0dd1b28fa87dda13a9685a6ee48 100644 (file)
@@ -180,7 +180,7 @@ static ssize_t mtx1_wdt_write(struct file *file, const char *buf, size_t count,
        return count;
 }
 
-static struct file_operations mtx1_wdt_fops = {
+static const struct file_operations mtx1_wdt_fops = {
        .owner          = THIS_MODULE,
        .llseek         = no_llseek,
        .ioctl          = mtx1_wdt_ioctl,