aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/sysdev.h3
-rw-r--r--include/linux/sysfs.h12
2 files changed, 9 insertions, 6 deletions
diff --git a/include/linux/sysdev.h b/include/linux/sysdev.h
index e699ab279c2c..e285746588d6 100644
--- a/include/linux/sysdev.h
+++ b/include/linux/sysdev.h
@@ -101,8 +101,7 @@ struct sysdev_attribute {
101 101
102#define _SYSDEV_ATTR(_name,_mode,_show,_store) \ 102#define _SYSDEV_ATTR(_name,_mode,_show,_store) \
103{ \ 103{ \
104 .attr = { .name = __stringify(_name), .mode = _mode, \ 104 .attr = { .name = __stringify(_name), .mode = _mode }, \
105 .owner = THIS_MODULE }, \
106 .show = _show, \ 105 .show = _show, \
107 .store = _store, \ 106 .store = _store, \
108} 107}
diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h
index 2f86b080b39d..161e19aa2b4f 100644
--- a/include/linux/sysfs.h
+++ b/include/linux/sysfs.h
@@ -20,9 +20,13 @@ struct module;
20struct nameidata; 20struct nameidata;
21struct dentry; 21struct dentry;
22 22
23/* FIXME
24 * The *owner field is no longer used, but leave around
25 * until the tree gets cleaned up fully.
26 */
23struct attribute { 27struct attribute {
24 const char * name; 28 const char * name;
25 struct module * owner; 29 struct module * owner;
26 mode_t mode; 30 mode_t mode;
27}; 31};
28 32
@@ -39,14 +43,14 @@ struct attribute_group {
39 */ 43 */
40 44
41#define __ATTR(_name,_mode,_show,_store) { \ 45#define __ATTR(_name,_mode,_show,_store) { \
42 .attr = {.name = __stringify(_name), .mode = _mode, .owner = THIS_MODULE }, \ 46 .attr = {.name = __stringify(_name), .mode = _mode }, \
43 .show = _show, \ 47 .show = _show, \
44 .store = _store, \ 48 .store = _store, \
45} 49}
46 50
47#define __ATTR_RO(_name) { \ 51#define __ATTR_RO(_name) { \
48 .attr = { .name = __stringify(_name), .mode = 0444, .owner = THIS_MODULE }, \ 52 .attr = { .name = __stringify(_name), .mode = 0444 }, \
49 .show = _name##_show, \ 53 .show = _name##_show, \
50} 54}
51 55
52#define __ATTR_NULL { .attr = { .name = NULL } } 56#define __ATTR_NULL { .attr = { .name = NULL } }