| commit | f9c0f8455913b161a968db82b3a05df0ee992e12 | [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 Oct 07 14:55:58 2025 +0200 |
| tree | 7d4469d1fce20d14b5b2b36fbbf2e1fe14d78b9d | |
| parent | cce5c62a75d667059cbb9c63ea009294f2de3955 [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>