Skip to content

Commit 82af5b6

Browse files
naynajaingregkh
authored andcommitted
sysfs: Fixes __BIN_ATTR_WO() macro
This patch fixes the size and write parameter for the macro __BIN_ATTR_WO(). Fixes: 7f90576 ("sysfs: add BIN_ATTR_WO() macro") Signed-off-by: Nayna Jain <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 54ecb8f commit 82af5b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/linux/sysfs.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,9 @@ struct bin_attribute {
196196
.size = _size, \
197197
}
198198

199-
#define __BIN_ATTR_WO(_name) { \
199+
#define __BIN_ATTR_WO(_name, _size) { \
200200
.attr = { .name = __stringify(_name), .mode = 0200 }, \
201-
.store = _name##_store, \
201+
.write = _name##_write, \
202202
.size = _size, \
203203
}
204204

0 commit comments

Comments
 (0)