diff options
| -rw-r--r-- | Documentation/driver-model/bus.txt | 8 | ||||
| -rw-r--r-- | Documentation/filesystems/sysfs.txt | 4 |
2 files changed, 7 insertions, 5 deletions
diff --git a/Documentation/driver-model/bus.txt b/Documentation/driver-model/bus.txt index b577a45b93ea..c247b488a567 100644 --- a/Documentation/driver-model/bus.txt +++ b/Documentation/driver-model/bus.txt | |||
| @@ -124,11 +124,11 @@ struct bus_attribute { | |||
| 124 | ssize_t (*store)(struct bus_type *, const char * buf, size_t count); | 124 | ssize_t (*store)(struct bus_type *, const char * buf, size_t count); |
| 125 | }; | 125 | }; |
| 126 | 126 | ||
| 127 | Bus drivers can export attributes using the BUS_ATTR macro that works | 127 | Bus drivers can export attributes using the BUS_ATTR_RW macro that works |
| 128 | similarly to the DEVICE_ATTR macro for devices. For example, a definition | 128 | similarly to the DEVICE_ATTR_RW macro for devices. For example, a |
| 129 | like this: | 129 | definition like this: |
| 130 | 130 | ||
| 131 | static BUS_ATTR(debug,0644,show_debug,store_debug); | 131 | static BUS_ATTR_RW(debug); |
| 132 | 132 | ||
| 133 | is equivalent to declaring: | 133 | is equivalent to declaring: |
| 134 | 134 | ||
diff --git a/Documentation/filesystems/sysfs.txt b/Documentation/filesystems/sysfs.txt index a1426cabcef1..41411b0c60a3 100644 --- a/Documentation/filesystems/sysfs.txt +++ b/Documentation/filesystems/sysfs.txt | |||
| @@ -344,7 +344,9 @@ struct bus_attribute { | |||
| 344 | 344 | ||
| 345 | Declaring: | 345 | Declaring: |
| 346 | 346 | ||
| 347 | BUS_ATTR(_name, _mode, _show, _store) | 347 | static BUS_ATTR_RW(name); |
| 348 | static BUS_ATTR_RO(name); | ||
| 349 | static BUS_ATTR_WO(name); | ||
| 348 | 350 | ||
| 349 | Creation/Removal: | 351 | Creation/Removal: |
| 350 | 352 | ||
