commit | f3d884c97293fac8a85033ffa5e52c7453773bb5 | [log] [tgz] |
---|---|---|
author | Ivan Orlov <ivan.orlov0322@gmail.com> | Sun Aug 06 00:22:06 2023 +0400 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Tue Jul 01 14:08:53 2025 +0200 |
tree | 8c1cef9d9b74f55d07fc2d2cff1946b532e1dcf8 | |
parent | 02c16f28cb135feebe8616207857be3280fc03dd [diff] |
misc: c2port: core: make c2port_class a static const structure Now that the driver core allows for struct class to be in read-only memory, move the c2port_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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>