diff options
Diffstat (limited to 'class_wo.patch')
| -rw-r--r-- | class_wo.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/class_wo.patch b/class_wo.patch new file mode 100644 index 00000000000000..2806ecd1ac660b --- /dev/null +++ b/class_wo.patch @@ -0,0 +1,15 @@ +--- + include/linux/device.h | 2 ++ + 1 file changed, 2 insertions(+) + +--- a/include/linux/device.h ++++ b/include/linux/device.h +@@ -465,6 +465,8 @@ struct class_attribute { + struct class_attribute class_attr_##_name = __ATTR_RW(_name) + #define CLASS_ATTR_RO(_name) \ + struct class_attribute class_attr_##_name = __ATTR_RO(_name) ++#define CLASS_ATTR_WO(_name) \ ++ struct class_attribute class_attr_##_name = __ATTR_WO(_name) + + extern int __must_check class_create_file_ns(struct class *class, + const struct class_attribute *attr, |
