Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f1e3d556 authored by Johannes Berg's avatar Johannes Berg
Browse files

cfg80211: make device_type const



Instances of struct device_type are never modified, make them const.

Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 94e860f1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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",
};

+1 −1
Original line number Diff line number Diff line
@@ -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,
};