dca: make dca_class a static const structure
authorIvan Orlov <ivan.orlov0322@gmail.com>
Fri, 12 Apr 2024 15:17:26 +0000 (16:17 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Jun 2024 08:22:20 +0000 (10:22 +0200)
commitd7d3ae441e29f0ca56c69cdd3a47769227b7be3d
tree57d0597244174c1e54647a29ce276f155868e442
parentbd7246a19ed85451befc3c8fc6038a7d955e7d5f
dca: make dca_class a static const structure

The driver core allows for struct class to be in read-only memory. Move
the dca_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>
Link: https://lore.kernel.org/r/20240412151726.189030-1-ivan.orlov0322@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/dca/dca-sysfs.c