| commit | 4fc60fcfdebfa1fa7c5197b7cc3c7a3e0f398c6a | [log] [tgz] |
|---|---|---|
| author | Ivan Orlov <ivan.orlov0322@gmail.com> | Sun Aug 06 00:22:06 2023 +0400 |
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Dec 17 13:10:12 2025 +0100 |
| tree | 43a1f6404a398df3a680d290ef5c4698f3bebc99 | |
| parent | f2884169b0f7ae0c9309d265d43b9d16c9154b54 [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>