diff --git a/include/linux/device.h b/include/linux/device.h index 49f453892ca55c021741e956af6dcd810c3c21d5..4264caacebb9450b7e6d5ddffa6b5e42f8ecd040 100644 --- 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,