mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
[WATCHDOG] struct file_operations should be const
Fix following warnings: WARNING: struct file_operations should normally be const Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
This commit is contained in:
parent
927d696113
commit
d5c26a5977
2 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue