Skip to content

Commit

Permalink
sysfs: Fixes __BIN_ATTR_WO() macro
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
naynajain authored and gregkh committed Oct 2, 2019
1 parent 54ecb8f commit 82af5b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/linux/sysfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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##_store, \
.write = _name##_write, \
.size = _size, \
}

Expand Down

0 comments on commit 82af5b6

Please sign in to comment.