commit | 02c16f28cb135feebe8616207857be3280fc03dd | [log] [tgz] |
---|---|---|
author | Ivan Orlov <ivan.orlov0322@gmail.com> | Sun Jun 18 12:59:50 2023 +0400 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Tue Jul 01 14:08:53 2025 +0200 |
tree | 0ea53f80e086964559331c7fafe5fdcc0fd62c84 | |
parent | 1ad220a9a567074a2a38f22519955f30682cff6d [diff] |
extcon: make extcon_class a static const structure Now that the driver core allows for struct class to be in read-only memory, move the extcon_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>