netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jiri Benc <jbenc@suse.cz>
To: "John W. Linville" <linville@tuxdriver.com>
Cc: netdev@vger.kernel.org
Subject: [PATCH 7/12] d80211: constify ieee80211_ops pointer
Date: Wed,  3 Jan 2007 19:05:15 +0100 (CET)	[thread overview]
Message-ID: <20070103180515.5F1833AA7F0@silver.suse.cz> (raw)
In-Reply-To: <20070103190418.710197000.midnight@suse.cz>

From: Michael Buesch <mb@bu3sch.de>

const-ify the ieee80211_ops pointer to allow
* The compiler to do opimizations
* The drivers to declare this structure const.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: Jiri Benc <jbenc@suse.cz>

---

 include/net/d80211.h     |    2 +-
 net/d80211/ieee80211.c   |    2 +-
 net/d80211/ieee80211_i.h |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

9d037dc28e7f453a2dbda17284d78ae18d15f646
diff --git a/include/net/d80211.h b/include/net/d80211.h
index dc7822f..9cecbd8 100644
--- a/include/net/d80211.h
+++ b/include/net/d80211.h
@@ -740,7 +740,7 @@ struct ieee80211_ops {
  * priv_data_len.
  */
 struct ieee80211_hw *ieee80211_alloc_hw(size_t priv_data_len,
-					struct ieee80211_ops *ops);
+					const struct ieee80211_ops *ops);
 
 /* Register hardware device to the IEEE 802.11 code and kernel. Low-level
  * drivers must call this function before using any other IEEE 802.11
diff --git a/net/d80211/ieee80211.c b/net/d80211/ieee80211.c
index c833642..a5ae8a1 100644
--- a/net/d80211/ieee80211.c
+++ b/net/d80211/ieee80211.c
@@ -4392,7 +4392,7 @@ static void rate_control_deinitialize(st
 }
 
 struct ieee80211_hw *ieee80211_alloc_hw(size_t priv_data_len,
-					      struct ieee80211_ops *ops)
+					const struct ieee80211_ops *ops)
 {
 	struct net_device *mdev;
         struct ieee80211_local *local;
diff --git a/net/d80211/ieee80211_i.h b/net/d80211/ieee80211_i.h
index 63077b0..6ba6a61 100644
--- a/net/d80211/ieee80211_i.h
+++ b/net/d80211/ieee80211_i.h
@@ -333,7 +333,7 @@ struct ieee80211_local {
 	 * it first anyway so they become a no-op */
 	struct ieee80211_hw hw;
 
-	struct ieee80211_ops *ops;
+	const struct ieee80211_ops *ops;
 
 	/* List of registered struct ieee80211_hw_mode */
 	struct list_head modes_list;
-- 
1.3.0


  parent reply	other threads:[~2007-01-03 18:05 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-03 18:05 [PATCH 0/12] d80211: pull request Jiri Benc
2007-01-03 18:05 ` [PATCH 1/12] d80211: Fix passing of invalid pointer Jiri Benc
2007-01-03 18:05 ` [PATCH 2/12] d80211: Fix 64bit printk warnings Jiri Benc
2007-01-03 18:05 ` [PATCH 3/12] d80211: fix classify_1d() priority selection Jiri Benc
2007-01-03 18:05 ` [PATCH 4/12] d80211: simplify classify_1d Jiri Benc
2007-01-03 18:05 ` [PATCH 5/12] d80211: Turn PHYmode list from an array into a linked list Jiri Benc
2007-01-03 18:05 ` [PATCH 6/12] d80211: add missing \n in skb queue warning Jiri Benc
2007-01-03 18:05 ` Jiri Benc [this message]
2007-01-03 18:05 ` [PATCH 8/12] d80211: small documentation fix Jiri Benc
2007-01-03 18:05 ` [PATCH 9/12] d80211: do not cancel uninitialized work Jiri Benc
2007-01-03 18:05 ` [PATCH 10/12] d80211: clear ifsta->associated flag when authentication starts Jiri Benc
2007-01-03 18:05 ` [PATCH 11/12] d80211: inhibit duplicate authentication requests when setting bssid Jiri Benc
2007-01-03 18:05 ` [PATCH 12/12] d80211: Reinit keys on mode change Jiri Benc

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070103180515.5F1833AA7F0@silver.suse.cz \
    --to=jbenc@suse.cz \
    --cc=linville@tuxdriver.com \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).