Skip to contentSkip to conversation

nvme: rename 'subtype' attribute to 'subsystype'

PATCH In review Hannes Reinecke 3 participants 3 messages Oct 14, 2021 – Oct 16, 2021 NVMe

lore
Share & tools
lore
#0 lore raw

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'")
---
 drivers/nvme/host/core.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/nvme/host/core.c +3 -3
index f9a25c61fb8b..4d676b5db413 100644
@@ -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