Commit b47a166e authored by Jan Engelhardt's avatar Jan Engelhardt Committed by Wim Van Sebroeck

[WATCHDOG] constify function pointer tables

"static struct file_operations" should be
"static const struct file_operations".
Signed-off-by: default avatarJan Engelhardt <jengelh@computergmbh.de>
Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
parent 6f702fce
...@@ -279,7 +279,7 @@ static int ar7_wdt_ioctl(struct inode *inode, struct file *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, .owner = THIS_MODULE,
.write = ar7_wdt_write, .write = ar7_wdt_write,
.ioctl = ar7_wdt_ioctl, .ioctl = ar7_wdt_ioctl,
......
...@@ -390,7 +390,7 @@ static struct platform_driver bfin_wdt_driver = { ...@@ -390,7 +390,7 @@ static struct platform_driver bfin_wdt_driver = {
.resume = bfin_wdt_resume, .resume = bfin_wdt_resume,
}; };
static struct file_operations bfin_wdt_fops = { static const struct file_operations bfin_wdt_fops = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.llseek = no_llseek, .llseek = no_llseek,
.write = bfin_wdt_write, .write = bfin_wdt_write,
......
...@@ -296,7 +296,7 @@ it8712f_wdt_release(struct inode *inode, struct file *file) ...@@ -296,7 +296,7 @@ it8712f_wdt_release(struct inode *inode, struct file *file)
return 0; return 0;
} }
static struct file_operations it8712f_wdt_fops = { static const struct file_operations it8712f_wdt_fops = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.llseek = no_llseek, .llseek = no_llseek,
.write = it8712f_wdt_write, .write = it8712f_wdt_write,
......
...@@ -158,7 +158,7 @@ static int mpc5200_wdt_release(struct inode *inode, struct file *file) ...@@ -158,7 +158,7 @@ static int mpc5200_wdt_release(struct inode *inode, struct file *file)
return 0; return 0;
} }
static struct file_operations mpc5200_wdt_fops = { static const struct file_operations mpc5200_wdt_fops = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.write = mpc5200_wdt_write, .write = mpc5200_wdt_write,
.ioctl = mpc5200_wdt_ioctl, .ioctl = mpc5200_wdt_ioctl,
......
...@@ -180,7 +180,7 @@ static ssize_t mtx1_wdt_write(struct file *file, const char *buf, size_t count, ...@@ -180,7 +180,7 @@ static ssize_t mtx1_wdt_write(struct file *file, const char *buf, size_t count,
return count; return count;
} }
static struct file_operations mtx1_wdt_fops = { static const struct file_operations mtx1_wdt_fops = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.llseek = no_llseek, .llseek = no_llseek,
.ioctl = mtx1_wdt_ioctl, .ioctl = mtx1_wdt_ioctl,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment