aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/driver-model/bus.txt8
-rw-r--r--Documentation/filesystems/sysfs.txt4
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
127Bus drivers can export attributes using the BUS_ATTR macro that works 127Bus drivers can export attributes using the BUS_ATTR_RW macro that works
128similarly to the DEVICE_ATTR macro for devices. For example, a definition 128similarly to the DEVICE_ATTR_RW macro for devices. For example, a
129like this: 129definition like this:
130 130
131static BUS_ATTR(debug,0644,show_debug,store_debug); 131static BUS_ATTR_RW(debug);
132 132
133is equivalent to declaring: 133is 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
345Declaring: 345Declaring:
346 346
347BUS_ATTR(_name, _mode, _show, _store) 347static BUS_ATTR_RW(name);
348static BUS_ATTR_RO(name);
349static BUS_ATTR_WO(name);
348 350
349Creation/Removal: 351Creation/Removal:
350 352