Skip to content

Commit 7810f4d

Browse files
davejianggregkh
authored andcommitted
base/node: Use 'property' to identify an access parameter
Usage of 'attr' and 'name' in the context of a sysfs attribute definition are confusing because those read as being related to: struct attribute .name Rename 'name' to 'property' in preparation for renaming 'struct node_hmem_attr' to a more generic name that can be used in more contexts ('struct access_coordinate'), and not be confused with 'struct attribute'. Suggested-by: Dan Williams <dan.j.williams@intel.com> Reviewed-by: Dan Williams <dan.j.williams@intel.com> Signed-off-by: Dave Jiang <dave.jiang@intel.com> Link: https://lore.kernel.org/r/168332213518.2189163.18377767521423011290.stgit@djiang5-mobl3 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent cd00bc2 commit 7810f4d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/base/node.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,15 +162,15 @@ static struct node_access_nodes *node_init_node_access(struct node *node,
162162
}
163163

164164
#ifdef CONFIG_HMEM_REPORTING
165-
#define ACCESS_ATTR(name) \
166-
static ssize_t name##_show(struct device *dev, \
165+
#define ACCESS_ATTR(property) \
166+
static ssize_t property##_show(struct device *dev, \
167167
struct device_attribute *attr, \
168168
char *buf) \
169169
{ \
170170
return sysfs_emit(buf, "%u\n", \
171-
to_access_nodes(dev)->hmem_attrs.name); \
171+
to_access_nodes(dev)->hmem_attrs.property); \
172172
} \
173-
static DEVICE_ATTR_RO(name)
173+
static DEVICE_ATTR_RO(property)
174174

175175
ACCESS_ATTR(read_bandwidth);
176176
ACCESS_ATTR(read_latency);

0 commit comments

Comments
 (0)