Skip to content

Commit

Permalink
drivers core: node: Use a more typical macro definition style for ACC…
Browse files Browse the repository at this point in the history
…ESS_ATTR

Remove the trailing semicolon from the macro and add it to its uses.

Signed-off-by: Joe Perches <[email protected]>
Link: https://lore.kernel.org/r/faf51a671160cf884efa68fb458d3e8a44b1a7a7.1600285923.git.joe@perches.com
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
JoePerches authored and gregkh committed Oct 2, 2020
1 parent e015e03 commit 6284a6e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions drivers/base/node.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,12 @@ static ssize_t name##_show(struct device *dev, \
return sysfs_emit(buf, "%u\n", \
to_access_nodes(dev)->hmem_attrs.name); \
} \
static DEVICE_ATTR_RO(name);
static DEVICE_ATTR_RO(name)

ACCESS_ATTR(read_bandwidth)
ACCESS_ATTR(read_latency)
ACCESS_ATTR(write_bandwidth)
ACCESS_ATTR(write_latency)
ACCESS_ATTR(read_bandwidth);
ACCESS_ATTR(read_latency);
ACCESS_ATTR(write_bandwidth);
ACCESS_ATTR(write_latency);

static struct attribute *access_attrs[] = {
&dev_attr_read_bandwidth.attr,
Expand Down

0 comments on commit 6284a6e

Please sign in to comment.