mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-09 22:50:41 +00:00
sysfs: Fixes __BIN_ATTR_WO() macro
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> Link: https://lore.kernel.org/r/1569973038-2710-1-git-send-email-nayna@linux.ibm.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
54ecb8f702
commit
82af5b6609
@ -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, \
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user