]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: mac80211_hwsim: change hwsim_class to a const struct
authorJori Koolstra <jkoolstra@xs4all.nl>
Tue, 3 Mar 2026 16:59:37 +0000 (17:59 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 4 Mar 2026 10:42:38 +0000 (11:42 +0100)
commit08d7d4cf2570428c695d63c018d3be897caf5be7
treeb561b311e8a42e29c302e2092e74be3257862da6
parentc64760e0bce2b89b3839eb60bf7b2e91a2ed0fff
wifi: mac80211_hwsim: change hwsim_class to a const struct

The class_create() call has been deprecated in favor of class_register()
as the driver core now allows for a struct class to be in read-only
memory. Change hwsim_class to be a const struct class and drop the
class_create() call.

Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Jori Koolstra <jkoolstra@xs4all.nl>
Link: https://patch.msgid.link/20260303165938.3773998-1-jkoolstra@xs4all.nl
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/virtual/mac80211_hwsim.c