aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorDavid Kilroy <kilroyd@googlemail.com>2009-05-16 18:13:46 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-05-20 14:46:27 -0400
commit3dcf670baf3d3a9bfc752e59d0b1a8d886230750 (patch)
tree843e1fbcfb9d2e62fbd7b419e7b8bf80b494cc61 /net
parentc15ff610453a6daa708f32b1c00b8344d3a462dd (diff)
cfg80211: mark ops as pointer to const
This allows drivers to mark their cfg80211_ops tables const. Signed-off-by: David Kilroy <kilroyd@googlemail.com> Acked-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net')
-rw-r--r--net/wireless/core.c2
-rw-r--r--net/wireless/core.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/net/wireless/core.c b/net/wireless/core.c
index b6ef5337c85..a5dbea1da47 100644
--- a/net/wireless/core.c
+++ b/net/wireless/core.c
@@ -229,7 +229,7 @@ int cfg80211_dev_rename(struct cfg80211_registered_device *rdev,
229 229
230/* exported functions */ 230/* exported functions */
231 231
232struct wiphy *wiphy_new(struct cfg80211_ops *ops, int sizeof_priv) 232struct wiphy *wiphy_new(const struct cfg80211_ops *ops, int sizeof_priv)
233{ 233{
234 static int wiphy_counter; 234 static int wiphy_counter;
235 235
diff --git a/net/wireless/core.h b/net/wireless/core.h
index 88f234c8f6b..9511c2be83d 100644
--- a/net/wireless/core.h
+++ b/net/wireless/core.h
@@ -16,7 +16,7 @@
16#include "reg.h" 16#include "reg.h"
17 17
18struct cfg80211_registered_device { 18struct cfg80211_registered_device {
19 struct cfg80211_ops *ops; 19 const struct cfg80211_ops *ops;
20 struct list_head list; 20 struct list_head list;
21 /* we hold this mutex during any call so that 21 /* we hold this mutex during any call so that
22 * we cannot do multiple calls at once, and also 22 * we cannot do multiple calls at once, and also