rapidio: make all 'class' structures const
authorIvan Orlov <ivan.orlov0322@gmail.com>
Thu, 10 Aug 2023 19:51:03 +0000 (23:51 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Oct 2023 11:51:35 +0000 (13:51 +0200)
commitd712d205210c494c29f33dc1d1f2ce4d7448faa9
treecd18e099535e29c5043809ca552aeb9f35695c27
parent4f01342464a8a99bf0cbb45a3ce4cf44a8baa1c5
rapidio: make all 'class' structures const

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

Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ivan Orlov <ivan.orlov0322@gmail.com>
Link: https://lore.kernel.org/r/20230810195103.27069-1-ivan.orlov0322@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/rapidio/devices/rio_mport_cdev.c
drivers/rapidio/rio_cm.c