projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e015e03
)
drivers core: node: Use a more typical macro definition style for ACCESS_ATTR
author
Joe Perches
<joe@perches.com>
Wed, 16 Sep 2020 20:40:45 +0000
(13:40 -0700)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 2 Oct 2020 11:24:40 +0000
(13:24 +0200)
Remove the trailing semicolon from the macro and add it to its uses.
Signed-off-by: Joe Perches <joe@perches.com>
Link:
https://lore.kernel.org/r/faf51a671160cf884efa68fb458d3e8a44b1a7a7.1600285923.git.joe@perches.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/node.c
patch
|
blob
|
history
diff --git
a/drivers/base/node.c
b/drivers/base/node.c
index
6366f94
..
9b0c257
100644
(file)
--- a/
drivers/base/node.c
+++ b/
drivers/base/node.c
@@
-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,