diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-23 15:29:34 +0530 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2017-08-24 12:57:31 +0300 |
commit | 9ea792a48cdd9229c9dd698f68dd4ee831bd8644 (patch) | |
tree | fe46ce5c1039ec8bccdbd6d89ec907d0702028f5 /drivers/net/wireless/rsi/rsi_91x_mac80211.c | |
parent | 28b75415ad19fef232d8daab4d5de17d753f0b36 (diff) | |
download | op-kernel-dev-9ea792a48cdd9229c9dd698f68dd4ee831bd8644.zip op-kernel-dev-9ea792a48cdd9229c9dd698f68dd4ee831bd8644.tar.gz |
net: rsi: mac80211: constify ieee80211_ops
ieee80211_ops are not supposed to change at runtime. All functions
working with ieee80211_ops provided by <net/mac80211.h> work with
const ieee80211_ops. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/rsi/rsi_91x_mac80211.c')
-rw-r--r-- | drivers/net/wireless/rsi/rsi_91x_mac80211.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/rsi/rsi_91x_mac80211.c b/drivers/net/wireless/rsi/rsi_91x_mac80211.c index 8b983d0..e24c8b3 100644 --- a/drivers/net/wireless/rsi/rsi_91x_mac80211.c +++ b/drivers/net/wireless/rsi/rsi_91x_mac80211.c @@ -1503,7 +1503,7 @@ static void rsi_mac80211_rfkill_poll(struct ieee80211_hw *hw) mutex_unlock(&common->mutex); } -static struct ieee80211_ops mac80211_ops = { +static const struct ieee80211_ops mac80211_ops = { .tx = rsi_mac80211_tx, .start = rsi_mac80211_start, .stop = rsi_mac80211_stop, |