nvme: rename 'subtype' attribute to 'subsystype'
PATCH 1/1 nvme: rename 'subtype' attribute to 'subsystype'
The sysfs attribute should be named 'subsystype' for consistency.
Fixes b72529169a56 ("nvme: expose subsystem type in sysfs attribute 'subtype'")
Suggested-by Daniel Wagner <[email protected]>
Signed-off-by Hannes Reinecke <[email protected]>
--- drivers/nvme/host/core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/nvme/host/core.c +3 -3
@@ -2599,7 +2599,7 @@ static ssize_t nvme_subsys_show_nqn(struct device *dev, } static SUBSYS_ATTR_RO(subsysnqn, S_IRUGO, nvme_subsys_show_nqn); -static ssize_t nvme_subsys_show_subtype (struct device *dev, +static ssize_t nvme_subsys_show_type (struct device *dev,struct device_attribute *attr,char *buf) {
@@ -2615,7 +2615,7 @@ static ssize_t nvme_subsys_show_subtype(struct device *dev,return sysfs_emit (buf,"reserved\n" ); } } -static SUBSYS_ATTR_RO(subtype, S_IRUGO, nvme_subsys_show_subtype); +static SUBSYS_ATTR_RO(subsystype, S_IRUGO, nvme_subsys_show_type);#define nvme_subsys_show_str_function (field) \ static ssize_t subsys_##field##_show(struct device *dev, \
@@ -2637,7 +2637,7 @@ static struct attribute *nvme_subsys_attrs[] = { &subsys_attr_serial.attr, &subsys_attr_firmware_rev.attr, &subsys_attr_subsysnqn.attr, - &subsys_attr_subtype.attr, + &subsys_attr_subsystype.attr, #ifdef CONFIG_NVME_MULTIPATH &subsys_attr_iopolicy.attr, #endif
Signature · 1 line
2.29.2
Quoted 5 lines · Hannes Reinecke
The sysfs attribute should be named 'subsystype' for consistency.
Fixes b72529169a56 ("nvme: expose subsystem type in sysfs attribute 'subtype'")Suggested-by Daniel Wagner <[email protected]>Signed-off-by Hannes Reinecke <[email protected]>
LGTM,
Reviewed-by Daniel Wagner <[email protected]>
Christoph Hellwig
maintainerThanks,
folded into the original patch.