diff options
Diffstat (limited to 'include/linux/sysfs.h')
-rw-r--r-- | include/linux/sysfs.h | 12 |
1 files changed, 8 insertions, 4 deletions
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; | |||
20 | struct nameidata; | 20 | struct nameidata; |
21 | struct dentry; | 21 | struct 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 | */ | ||
23 | struct attribute { | 27 | struct 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 } } |