Skip to content

Commit

Permalink
cfg80211: mark wiphy->privid as pointer to const
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Kilroy authored and John W. Linville committed May 20, 2009
1 parent 3dcf670 commit cf5aa2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/net/cfg80211.h
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand Down

0 comments on commit cf5aa2f

Please sign in to comment.