projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26b1959
)
sysfs: Fixes __BIN_ATTR_WO() macro
author
Nayna Jain
<nayna@linux.ibm.com>
Tue, 1 Oct 2019 23:37:18 +0000
(19:37 -0400)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Tue, 12 Nov 2019 13:33:21 +0000
(
00:33
+1100)
This patch fixes the size and write parameter for the macro
__BIN_ATTR_WO().
Fixes: 7f905761e15a8 ("sysfs: add BIN_ATTR_WO() macro")
Signed-off-by: Nayna Jain <nayna@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link:
https://lore.kernel.org/r/1569973038-2710-1-git-send-email-nayna@linux.ibm.com
include/linux/sysfs.h
patch
|
blob
|
history
diff --git
a/include/linux/sysfs.h
b/include/linux/sysfs.h
index 5420817ed317ebf3642758dd950d3994458eb977..fa7ee503fb76326d181d844aad22700bd85bf7fa 100644
(file)
--- a/
include/linux/sysfs.h
+++ b/
include/linux/sysfs.h
@@
-196,9
+196,9
@@
struct bin_attribute {
.size = _size, \
}
-#define __BIN_ATTR_WO(_name
) {
\
+#define __BIN_ATTR_WO(_name
, _size) {
\
.attr = { .name = __stringify(_name), .mode = 0200 }, \
- .
store = _name##_stor
e, \
+ .
write = _name##_writ
e, \
.size = _size, \
}