提交 d5c26a59 编写于 作者: W Wim Van Sebroeck

[WATCHDOG] struct file_operations should be const

Fix following warnings:
WARNING: struct file_operations should normally be const
Signed-off-by: NWim Van Sebroeck <wim@iguana.be>
上级 927d6961
......@@ -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,
......
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册