Commit 3dcf670b authored by David Kilroy's avatar David Kilroy Committed by John W. Linville

cfg80211: mark ops as pointer to const

This allows drivers to mark their cfg80211_ops tables const.
Signed-off-by: default avatarDavid Kilroy <kilroyd@googlemail.com>
Acked-by: default avatarJohannes Berg <johannes@sipsolutions.net>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent c15ff610
...@@ -1073,7 +1073,7 @@ static inline const char *wiphy_name(struct wiphy *wiphy) ...@@ -1073,7 +1073,7 @@ static inline const char *wiphy_name(struct wiphy *wiphy)
* The returned pointer must be assigned to each netdev's * The returned pointer must be assigned to each netdev's
* ieee80211_ptr for proper operation. * ieee80211_ptr for proper operation.
*/ */
struct wiphy *wiphy_new(struct cfg80211_ops *ops, int sizeof_priv); struct wiphy *wiphy_new(const struct cfg80211_ops *ops, int sizeof_priv);
/** /**
* wiphy_register - register a wiphy with cfg80211 * wiphy_register - register a wiphy with cfg80211
......
...@@ -229,7 +229,7 @@ int cfg80211_dev_rename(struct cfg80211_registered_device *rdev, ...@@ -229,7 +229,7 @@ int cfg80211_dev_rename(struct cfg80211_registered_device *rdev,
/* exported functions */ /* exported functions */
struct wiphy *wiphy_new(struct cfg80211_ops *ops, int sizeof_priv) struct wiphy *wiphy_new(const struct cfg80211_ops *ops, int sizeof_priv)
{ {
static int wiphy_counter; static int wiphy_counter;
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#include "reg.h" #include "reg.h"
struct cfg80211_registered_device { struct cfg80211_registered_device {
struct cfg80211_ops *ops; const struct cfg80211_ops *ops;
struct list_head list; struct list_head list;
/* we hold this mutex during any call so that /* we hold this mutex during any call so that
* we cannot do multiple calls at once, and also * we cannot do multiple calls at once, and also
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment