File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -120,15 +120,19 @@ struct configfs_attribute {
120
120
ssize_t (* store )(struct config_item * , const char * , size_t );
121
121
};
122
122
123
- #define CONFIGFS_ATTR (_pfx , _name ) \
123
+ #define CONFIGFS_ATTR_PERM (_pfx , _name , _perm ) \
124
124
static struct configfs_attribute _pfx##attr_##_name = { \
125
125
.ca_name = __stringify(_name), \
126
- .ca_mode = S_IRUGO | S_IWUSR, \
126
+ .ca_mode = _perm, \
127
127
.ca_owner = THIS_MODULE, \
128
128
.show = _pfx##_name##_show, \
129
129
.store = _pfx##_name##_store, \
130
130
}
131
131
132
+ #define CONFIGFS_ATTR (_pfx , _name ) CONFIGFS_ATTR_PERM( \
133
+ _pfx, _name, S_IRUGO | S_IWUSR \
134
+ )
135
+
132
136
#define CONFIGFS_ATTR_RO (_pfx , _name ) \
133
137
static struct configfs_attribute _pfx##attr_##_name = { \
134
138
.ca_name = __stringify(_name), \
You can’t perform that action at this time.
0 commit comments