diff options
author | Ricardo B. Marliere <ricardo@marliere.net> | 2024-03-02 14:06:01 -0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-03-05 11:21:18 -0800 |
commit | 070bef83f03ea9d91a8011f18113f8967e3df5bf (patch) | |
tree | 0b7c30a173fd6808cd721029c10bee6d43c0c5a9 /net/nfc | |
parent | d9567f212b15c2bb2220ca59b3103c752765dded (diff) | |
download | linux-070bef83f03ea9d91a8011f18113f8967e3df5bf.tar.gz linux-070bef83f03ea9d91a8011f18113f8967e3df5bf.tar.bz2 linux-070bef83f03ea9d91a8011f18113f8967e3df5bf.zip |
net: wwan: core: make wwan_class constant
Since commit 43a7206b0963 ("driver core: class: make class_register() take
a const *"), the driver core allows for struct class to be in read-only
memory, so move the wwan_class structure to be declared at build time
placing it into read-only memory, instead of having to be dynamically
allocated at boot time.
Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net>
Acked-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
Link: https://lore.kernel.org/r/20240302-class_cleanup-net-next-v1-5-8fa378595b93@marliere.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/nfc')
0 files changed, 0 insertions, 0 deletions