git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
sysfs.h: add __ATTR_RW() macro
[pandora-kernel.git]
/
include
/
linux
/
sysfs.h
diff --git
a/include/linux/sysfs.h
b/include/linux/sysfs.h
index
e2cee22
..
9cd20c8
100644
(file)
--- a/
include/linux/sysfs.h
+++ b/
include/linux/sysfs.h
@@
-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