mei: make mei_class a static const structure
authorIvan Orlov <ivan.orlov0322@gmail.com>
Fri, 11 Aug 2023 21:30:52 +0000 (01:30 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Aug 2023 11:42:00 +0000 (13:42 +0200)
commitdf8e2c3e16befe8c92ee6016059871d126015005
tree1a1f57b67aeb8da9ce3b6dfe7d0d76960a8ed7f8
parent979ca1ca1f2c87386deffbeb01767bb40448b4a1
mei: make mei_class a static const structure

Now that the driver core allows for struct class to be in read-only
memory, move the mei_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: Ivan Orlov <ivan.orlov0322@gmail.com>
Link: https://lore.kernel.org/r/20230811213052.85044-1-ivan.orlov0322@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/main.c