diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-06-10 10:19:42 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-06-13 16:41:06 +0200 |
commit | 477e36546e6fa79282427d5b82a9a9a67504de1a (patch) | |
tree | 05303b339855f3fe7b39d8e6af5023f748dd3779 /rust/helpers.c | |
parent | dd6e9894b451e7c85cceb8e9dc5432679a70e7dc (diff) |
nvdimm: make nd_class constant
Now that the driver core allows for struct class to be in read-only
memory, it is possible to make all 'class' structures be declared at
build time. Move the class to a 'static const' declaration and register
it rather than dynamically create it."
Cc: Vishal Verma <vishal.l.verma@intel.com>
Cc: Dave Jiang <dave.jiang@intel.com>
Cc: nvdimm@lists.linux.dev
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Link: https://lore.kernel.org/r/2024061041-grandkid-coherence-19b0@gregkh
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions