cfg80211: make device_type const
authorJohannes Berg <johannes.berg@intel.com>
Mon, 20 Jan 2014 23:00:56 +0000 (00:00 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 4 Feb 2014 20:48:23 +0000 (21:48 +0100)
Instances of struct device_type are never modified, make them const.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/core.c
net/wireless/reg.c

index d89dee2259b5994b9237100425aae0a3f21b20af..b5ff39a6f6ed9949a828b2391ad5bdf284ab54b9 100644 (file)
@@ -737,7 +737,7 @@ void cfg80211_unregister_wdev(struct wireless_dev *wdev)
 }
 EXPORT_SYMBOL(cfg80211_unregister_wdev);
 
-static struct device_type wiphy_type = {
+static const struct device_type wiphy_type = {
        .name   = "wlan",
 };
 
index 484facf00510df955878b0f98eee607d19686f2f..99b0cad76f775433af84872d41fbdc52b9772d18 100644 (file)
@@ -91,7 +91,7 @@ static struct regulatory_request __rcu *last_request =
 /* To trigger userspace events */
 static struct platform_device *reg_pdev;
 
-static struct device_type reg_device_type = {
+static const struct device_type reg_device_type = {
        .uevent = reg_device_uevent,
 };