diff options
author | Johannes Berg <johannes.berg@intel.com> | 2014-01-20 18:00:56 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2014-02-04 15:48:23 -0500 |
commit | f1e3d556a02a155e260697088579d18f12d54c83 (patch) | |
tree | 998defa5a13d13c4636f91abfefcf50aa63f27ee /net/wireless | |
parent | 94e860f13d39fce83afc6a60619539fc035cac73 (diff) |
cfg80211: make device_type const
Instances of struct device_type are never modified, make them const.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless')
-rw-r--r-- | net/wireless/core.c | 2 | ||||
-rw-r--r-- | net/wireless/reg.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/net/wireless/core.c b/net/wireless/core.c index d89dee2259b5..b5ff39a6f6ed 100644 --- a/net/wireless/core.c +++ b/net/wireless/core.c | |||
@@ -737,7 +737,7 @@ void cfg80211_unregister_wdev(struct wireless_dev *wdev) | |||
737 | } | 737 | } |
738 | EXPORT_SYMBOL(cfg80211_unregister_wdev); | 738 | EXPORT_SYMBOL(cfg80211_unregister_wdev); |
739 | 739 | ||
740 | static struct device_type wiphy_type = { | 740 | static const struct device_type wiphy_type = { |
741 | .name = "wlan", | 741 | .name = "wlan", |
742 | }; | 742 | }; |
743 | 743 | ||
diff --git a/net/wireless/reg.c b/net/wireless/reg.c index 484facf00510..99b0cad76f77 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c | |||
@@ -91,7 +91,7 @@ static struct regulatory_request __rcu *last_request = | |||
91 | /* To trigger userspace events */ | 91 | /* To trigger userspace events */ |
92 | static struct platform_device *reg_pdev; | 92 | static struct platform_device *reg_pdev; |
93 | 93 | ||
94 | static struct device_type reg_device_type = { | 94 | static const struct device_type reg_device_type = { |
95 | .uevent = reg_device_uevent, | 95 | .uevent = reg_device_uevent, |
96 | }; | 96 | }; |
97 | 97 | ||