[PATCH] nvme: rename 'subtype' attribute to 'subsystype'
Hannes Reinecke
hare at suse.de
Thu Oct 14 02:27:34 PDT 2021
The sysfs attribute should be named 'subsystype' for consistency.
Fixes: b72529169a56 ("nvme: expose subsystem type in sysfs attribute 'subtype'")
Suggested-by: Daniel Wagner <daniel.wagner at suse.de>
Signed-off-by: Hannes Reinecke <hare at suse.de>
---
drivers/nvme/host/core.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
index f9a25c61fb8b..4d676b5db413 100644
--- a/drivers/nvme/host/core.c
+++ b/drivers/nvme/host/core.c
@@ -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
--
2.29.2
More information about the Linux-nvme
mailing list