diff options
-rw-r--r-- | include/linux/sysfs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h index b5a9d9b26bd4..69c1ff003628 100644 --- a/include/linux/sysfs.h +++ b/include/linux/sysfs.h | |||
@@ -80,6 +80,11 @@ struct attribute_group { | |||
80 | .show = _name##_show, \ | 80 | .show = _name##_show, \ |
81 | } | 81 | } |
82 | 82 | ||
83 | #define __ATTR_WO(_name) { \ | ||
84 | .attr = { .name = __stringify(_name), .mode = S_IWUSR }, \ | ||
85 | .store = _name##_store, \ | ||
86 | } | ||
87 | |||
83 | #define __ATTR_RW(_name) __ATTR(_name, (S_IWUSR | S_IRUGO), \ | 88 | #define __ATTR_RW(_name) __ATTR(_name, (S_IWUSR | S_IRUGO), \ |
84 | _name##_show, _name##_store) | 89 | _name##_show, _name##_store) |
85 | 90 | ||