s390/raw3270: make class3270 constant
authorRicardo B. Marliere <ricardo@marliere.net>
Tue, 5 Mar 2024 11:25:24 +0000 (08:25 -0300)
committerHeiko Carstens <hca@linux.ibm.com>
Wed, 13 Mar 2024 08:23:50 +0000 (09:23 +0100)
commit69460c5e6be063a85bb144845422776e0ffe8faa
tree9806e5770eb3343b52421fdb69b7354742e7464f
parentc8fba0c11f180418c9e4e89353c7f29d7c9e1915
s390/raw3270: make class3270 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 class3270 structure to be declared at build time
placing it into read-only memory, instead of having to be dynamically
allocated at boot time.

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: "Ricardo B. Marliere" <ricardo@marliere.net>
Link: https://lore.kernel.org/r/20240305-class_cleanup-s390-v1-6-c4ff1ec49ffd@marliere.net
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
drivers/s390/char/fs3270.c
drivers/s390/char/raw3270.c
drivers/s390/char/raw3270.h