]> asedeno.scripts.mit.edu Git - linux.git/commit
acpi/nfit, libnvdimm: Store dimm id as a member to struct nvdimm
authorDave Jiang <dave.jiang@intel.com>
Tue, 4 Dec 2018 18:31:20 +0000 (10:31 -0800)
committerDan Williams <dan.j.williams@intel.com>
Fri, 14 Dec 2018 01:54:12 +0000 (17:54 -0800)
commitd6548ae4d16dc231dec22860c9c472bcb991fb15
tree429441594a2e3f96b62417a7361efc11f9bdb9fd
parentb3ed2ce024c36054e51cca2eb31a1cdbe4a5f11e
acpi/nfit, libnvdimm: Store dimm id as a member to struct nvdimm

The generated dimm id is needed for the sysfs attribute as well as being
used as the identifier/description for the security key. Since it's
constant and should never change, store it as a member of struct nvdimm.

As nvdimm_create() continues to grow parameters relative to NFIT driver
requirements, do not require other implementations to keep pace.
Introduce __nvdimm_create() to carry the new parameters and keep
nvdimm_create() with the long standing default api.

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/acpi/nfit/core.c
drivers/acpi/nfit/nfit.h
drivers/nvdimm/dimm_devs.c
drivers/nvdimm/nd-core.h
include/linux/libnvdimm.h