misc: phantom: make phantom_class constant
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Oct 2023 11:49:35 +0000 (13:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Oct 2023 09:07:11 +0000 (11:07 +0200)
commitf6c086ef8417b4c6941628ab043c4688e2fd17c2
tree8c0552a33f447de4b85f37a6c2ff55e0c295d2f7
parent421359cbdbdcaea93b83e1e6b61eb261b75b1998
misc: phantom: make phantom_class constant

Now that the driver core allows for struct class to be in read-only
memory, we should make all 'class' structures declared at build time
placing them into read-only memory, instead of having to be dynamically
allocated at runtime.

Cc: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Jiri Slaby <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/2023102434-font-feast-98e3@gregkh
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/phantom.c