Pārlūkot izejas kodu

cfg80211: mark wiphy->privid as pointer to const

This allows drivers to use a const pointer as the privid without a cast.

Signed-off-by: David Kilroy <kilroyd@gmail.com>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
David Kilroy 16 gadi atpakaļ
vecāks
revīzija
cf5aa2f1f3
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      include/net/cfg80211.h

+ 1 - 1
include/net/cfg80211.h

@@ -997,7 +997,7 @@ struct wiphy {
 	 * know whether it points to a wiphy your driver has registered
 	 * or not. Assign this to something global to your driver to
 	 * help determine whether you own this wiphy or not. */
-	void *privid;
+	const void *privid;
 
 	struct ieee80211_supported_band *bands[IEEE80211_NUM_BANDS];