libnvdimm: Move attribute groups to device type
authorDan Williams <dan.j.williams@intel.com>
Thu, 7 Nov 2019 03:56:41 +0000 (19:56 -0800)
committerDan Williams <dan.j.williams@intel.com>
Sun, 17 Nov 2019 17:17:38 +0000 (09:17 -0800)
commit78c81cc89a40114d09a5ec0693cfd97831ffbe79
treee4eda33f55368eef544375b5c487c1981924383e
parentcda93d6965a162be87f9d6dc5fb28b99335860fe
libnvdimm: Move attribute groups to device type

Statically initialize the attribute groups for each libnvdimm
device_type. This is a preparation step for removing unnecessary exports
of attributes that can be included in the device_type by default.

Also take the opportunity to mark 'struct device_type' instances const.

Cc: Ira Weiny <ira.weiny@intel.com>
Cc: Vishal Verma <vishal.l.verma@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Link: https://lore.kernel.org/r/157309900111.1582359.2445687530383470348.stgit@dwillia2-desk3.amr.corp.intel.com
drivers/nvdimm/btt_devs.c
drivers/nvdimm/dax_devs.c
drivers/nvdimm/namespace_devs.c
drivers/nvdimm/nd.h
drivers/nvdimm/pfn_devs.c