aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rtlwifi
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2014-01-20 17:29:34 -0500
committerJohannes Berg <johannes.berg@intel.com>2014-02-04 15:48:21 -0500
commit631ad703ba3a585e96acbfd2ac8c0f0fee1ad99b (patch)
tree8c65d36d787a5ef4e2aa6e9ac7306e22349dfcb2 /drivers/net/wireless/rtlwifi
parentc1cf6d4e6f17406c4fd7b0f4fae779fa61666cc3 (diff)
mac80211: make rate control ops const
Change the code to allow making all the rate control ops const, nothing ever needs to change them. Also change all drivers to make use of this and mark the ops const. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/wireless/rtlwifi')
-rw-r--r--drivers/net/wireless/rtlwifi/rc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/rtlwifi/rc.c b/drivers/net/wireless/rtlwifi/rc.c
index a98acefb8c06..1503d9e5bc9f 100644
--- a/drivers/net/wireless/rtlwifi/rc.c
+++ b/drivers/net/wireless/rtlwifi/rc.c
@@ -260,7 +260,7 @@ static void rtl_rate_free_sta(void *rtlpriv,
260 kfree(rate_priv); 260 kfree(rate_priv);
261} 261}
262 262
263static struct rate_control_ops rtl_rate_ops = { 263static const struct rate_control_ops rtl_rate_ops = {
264 .module = NULL, 264 .module = NULL,
265 .name = "rtl_rc", 265 .name = "rtl_rc",
266 .alloc = rtl_rate_alloc, 266 .alloc = rtl_rate_alloc,