]> rtime.felk.cvut.cz Git - linux-imx.git/blobdiff - include/linux/sysfs.h
sysfs.h: add __ATTR_RW() macro
[linux-imx.git] / include / linux / sysfs.h
index e2cee22f578a6b24d7eb39c1ad298f15115bcb2d..9cd20c8404e5396c9b118c557b21e786b58dbc39 100644 (file)
@@ -79,6 +79,8 @@ struct attribute_group {
        .show   = _name##_show,                                 \
 }
 
+#define __ATTR_RW(_name) __ATTR(_name, 0644, _name##_show, _name##_store)
+
 #define __ATTR_NULL { .attr = { .name = NULL } }
 
 #ifdef CONFIG_DEBUG_LOCK_ALLOC