diff options
| author | Jan Engelhardt <jengelh@computergmbh.de> | 2008-01-22 14:48:10 -0500 |
|---|---|---|
| committer | Wim Van Sebroeck <wim@iguana.be> | 2008-01-25 15:41:30 -0500 |
| commit | b47a166ed0baaaa30112532bad41b21e7c5e4d31 (patch) | |
| tree | 21dd81db7259f3090758cfaeb05cc8234974c398 | |
| parent | 6f702fce387e16e16d7930b5c9927d5e71d36ece (diff) | |
[WATCHDOG] constify function pointer tables
"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>
| -rw-r--r-- | drivers/watchdog/ar7_wdt.c | 2 | ||||
| -rw-r--r-- | drivers/watchdog/bfin_wdt.c | 2 | ||||
| -rw-r--r-- | drivers/watchdog/it8712f_wdt.c | 2 | ||||
| -rw-r--r-- | drivers/watchdog/mpc5200_wdt.c | 2 | ||||
| -rw-r--r-- | drivers/watchdog/mtx-1_wdt.c | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/drivers/watchdog/ar7_wdt.c b/drivers/watchdog/ar7_wdt.c index cdaab8c3d3d0..2eb48c0df32c 100644 --- a/drivers/watchdog/ar7_wdt.c +++ b/drivers/watchdog/ar7_wdt.c | |||
| @@ -279,7 +279,7 @@ static int ar7_wdt_ioctl(struct inode *inode, struct file *file, | |||
| 279 | } | 279 | } |
| 280 | } | 280 | } |
| 281 | 281 | ||
| 282 | static struct file_operations ar7_wdt_fops = { | 282 | static const struct file_operations ar7_wdt_fops = { |
| 283 | .owner = THIS_MODULE, | 283 | .owner = THIS_MODULE, |
| 284 | .write = ar7_wdt_write, | 284 | .write = ar7_wdt_write, |
| 285 | .ioctl = ar7_wdt_ioctl, | 285 | .ioctl = ar7_wdt_ioctl, |
diff --git a/drivers/watchdog/bfin_wdt.c b/drivers/watchdog/bfin_wdt.c index 31dc7a69e90c..472be10f0686 100644 --- a/drivers/watchdog/bfin_wdt.c +++ b/drivers/watchdog/bfin_wdt.c | |||
| @@ -390,7 +390,7 @@ static struct platform_driver bfin_wdt_driver = { | |||
| 390 | .resume = bfin_wdt_resume, | 390 | .resume = bfin_wdt_resume, |
| 391 | }; | 391 | }; |
| 392 | 392 | ||
| 393 | static struct file_operations bfin_wdt_fops = { | 393 | static const struct file_operations bfin_wdt_fops = { |
| 394 | .owner = THIS_MODULE, | 394 | .owner = THIS_MODULE, |
| 395 | .llseek = no_llseek, | 395 | .llseek = no_llseek, |
| 396 | .write = bfin_wdt_write, | 396 | .write = bfin_wdt_write, |
diff --git a/drivers/watchdog/it8712f_wdt.c b/drivers/watchdog/it8712f_wdt.c index 6330fc02464e..1b6d7d1b715d 100644 --- a/drivers/watchdog/it8712f_wdt.c +++ b/drivers/watchdog/it8712f_wdt.c | |||
| @@ -296,7 +296,7 @@ it8712f_wdt_release(struct inode *inode, struct file *file) | |||
| 296 | return 0; | 296 | return 0; |
| 297 | } | 297 | } |
| 298 | 298 | ||
| 299 | static struct file_operations it8712f_wdt_fops = { | 299 | static const struct file_operations it8712f_wdt_fops = { |
| 300 | .owner = THIS_MODULE, | 300 | .owner = THIS_MODULE, |
| 301 | .llseek = no_llseek, | 301 | .llseek = no_llseek, |
| 302 | .write = it8712f_wdt_write, | 302 | .write = it8712f_wdt_write, |
diff --git a/drivers/watchdog/mpc5200_wdt.c b/drivers/watchdog/mpc5200_wdt.c index 11f6a111e75b..80a91d4cea11 100644 --- a/drivers/watchdog/mpc5200_wdt.c +++ b/drivers/watchdog/mpc5200_wdt.c | |||
| @@ -158,7 +158,7 @@ static int mpc5200_wdt_release(struct inode *inode, struct file *file) | |||
| 158 | return 0; | 158 | return 0; |
| 159 | } | 159 | } |
| 160 | 160 | ||
| 161 | static struct file_operations mpc5200_wdt_fops = { | 161 | static const struct file_operations mpc5200_wdt_fops = { |
| 162 | .owner = THIS_MODULE, | 162 | .owner = THIS_MODULE, |
| 163 | .write = mpc5200_wdt_write, | 163 | .write = mpc5200_wdt_write, |
| 164 | .ioctl = mpc5200_wdt_ioctl, | 164 | .ioctl = mpc5200_wdt_ioctl, |
diff --git a/drivers/watchdog/mtx-1_wdt.c b/drivers/watchdog/mtx-1_wdt.c index dcfd401a7ad7..98451747d3cd 100644 --- a/drivers/watchdog/mtx-1_wdt.c +++ b/drivers/watchdog/mtx-1_wdt.c | |||
| @@ -180,7 +180,7 @@ static ssize_t mtx1_wdt_write(struct file *file, const char *buf, size_t count, | |||
| 180 | return count; | 180 | return count; |
| 181 | } | 181 | } |
| 182 | 182 | ||
| 183 | static struct file_operations mtx1_wdt_fops = { | 183 | static const struct file_operations mtx1_wdt_fops = { |
| 184 | .owner = THIS_MODULE, | 184 | .owner = THIS_MODULE, |
| 185 | .llseek = no_llseek, | 185 | .llseek = no_llseek, |
| 186 | .ioctl = mtx1_wdt_ioctl, | 186 | .ioctl = mtx1_wdt_ioctl, |
