diff options
author | Dan Williams <dan.j.williams@intel.com> | 2016-04-28 16:17:07 -0700 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2016-04-28 16:23:16 -0700 |
commit | e3654eca70d63704c94a60a2aafc0b3c7b46a00b (patch) | |
tree | 2e2d1c136d04f1918908b841a45de2c551f01533 /drivers/nvdimm/core.c | |
parent | 40abf9be8f52d440e442206182916e3dcc68f722 (diff) | |
download | op-kernel-dev-e3654eca70d63704c94a60a2aafc0b3c7b46a00b.zip op-kernel-dev-e3654eca70d63704c94a60a2aafc0b3c7b46a00b.tar.gz |
nfit, libnvdimm: clarify "commands" vs "_DSMs"
Clarify the distinction between "commands", the ioctls userspace calls
to request the kernel take some action on a given dimm device, and
"_DSMs", the actual function numbers used in the firmware interface to
the DIMM. _DSMs are ACPI specific whereas commands are Linux kernel
generic.
This is in preparation for breaking the 1:1 implicit relationship
between the kernel ioctl number space and the firmware specific function
numbers.
Cc: Jerry Hoemann <jerry.hoemann@hpe.com>
Cc: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/nvdimm/core.c')
-rw-r--r-- | drivers/nvdimm/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvdimm/core.c b/drivers/nvdimm/core.c index 182a93f..e8688a1 100644 --- a/drivers/nvdimm/core.c +++ b/drivers/nvdimm/core.c @@ -251,7 +251,7 @@ static ssize_t commands_show(struct device *dev, struct nvdimm_bus *nvdimm_bus = to_nvdimm_bus(dev); struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; - for_each_set_bit(cmd, &nd_desc->dsm_mask, BITS_PER_LONG) + for_each_set_bit(cmd, &nd_desc->cmd_mask, BITS_PER_LONG) len += sprintf(buf + len, "%s ", nvdimm_bus_cmd_name(cmd)); len += sprintf(buf + len, "\n"); return len; |