ipmi: make ipmi_class a static const structure
authorIvan Orlov <ivan.orlov0322@gmail.com>
Tue, 20 Jun 2023 14:37:02 +0000 (16:37 +0200)
committerCorey Minyard <minyard@acm.org>
Tue, 20 Jun 2023 14:49:08 +0000 (09:49 -0500)
commit392fa3a3abdb03105c8767b7fb176bc8793349f5
tree745c2bd9c8668349ae00f4a228f088389fe3675c
parentb8d72e32e1453d37ee5c8a219f24e7eeadc471ef
ipmi: make ipmi_class a static const structure

Now that the driver core allows for struct class to be in read-only
memory, move the ipmi_class structure to be declared at build time
placing it into read-only memory, instead of having to be dynamically
allocated at boot time.

Cc: Corey Minyard <minyard@acm.org>
Cc: openipmi-developer@lists.sourceforge.net
Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ivan Orlov <ivan.orlov0322@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Message-Id: <20230620143701.577657-2-gregkh@linuxfoundation.org>
Signed-off-by: Corey Minyard <minyard@acm.org>
drivers/char/ipmi/ipmi_devintf.c