diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2009-09-01 15:25:05 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-09-02 04:03:53 -0400 |
commit | 5ca1b998d33c39819fca2b675d80c4469e705f2d (patch) | |
tree | fbe882f3908b6b57ae3fe54d13abb0067538276d /net/mac80211 | |
parent | 3b401a81c0d50ea9c718cf837f62cc2e6e79cc30 (diff) |
net: file_operations should be const
All instances of file_operations should be const.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/rc80211_minstrel_debugfs.c | 2 | ||||
-rw-r--r-- | net/mac80211/rc80211_pid_debugfs.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/net/mac80211/rc80211_minstrel_debugfs.c b/net/mac80211/rc80211_minstrel_debugfs.c index 3d72ec5730d4..a715d9454f64 100644 --- a/net/mac80211/rc80211_minstrel_debugfs.c +++ b/net/mac80211/rc80211_minstrel_debugfs.c | |||
@@ -139,7 +139,7 @@ minstrel_stats_release(struct inode *inode, struct file *file) | |||
139 | return 0; | 139 | return 0; |
140 | } | 140 | } |
141 | 141 | ||
142 | static struct file_operations minstrel_stat_fops = { | 142 | static const struct file_operations minstrel_stat_fops = { |
143 | .owner = THIS_MODULE, | 143 | .owner = THIS_MODULE, |
144 | .open = minstrel_stats_open, | 144 | .open = minstrel_stats_open, |
145 | .read = minstrel_stats_read, | 145 | .read = minstrel_stats_read, |
diff --git a/net/mac80211/rc80211_pid_debugfs.c b/net/mac80211/rc80211_pid_debugfs.c index a08a9b530347..a59043fbb0ff 100644 --- a/net/mac80211/rc80211_pid_debugfs.c +++ b/net/mac80211/rc80211_pid_debugfs.c | |||
@@ -198,7 +198,7 @@ static ssize_t rate_control_pid_events_read(struct file *file, char __user *buf, | |||
198 | 198 | ||
199 | #undef RC_PID_PRINT_BUF_SIZE | 199 | #undef RC_PID_PRINT_BUF_SIZE |
200 | 200 | ||
201 | static struct file_operations rc_pid_fop_events = { | 201 | static const struct file_operations rc_pid_fop_events = { |
202 | .owner = THIS_MODULE, | 202 | .owner = THIS_MODULE, |
203 | .read = rate_control_pid_events_read, | 203 | .read = rate_control_pid_events_read, |
204 | .poll = rate_control_pid_events_poll, | 204 | .poll = rate_control_pid_events_poll, |