Skip to content

Commit 735df0f

Browse files
committed
Documentation: driver core: remove use of BUS_ATTR
We are getting rid of the "raw" BUS_ATTR() macro, so fix up the documentation to not refer to it anymore. Cc: "Rafael J. Wysocki" <rafael.j.wysocki@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent de96e9f commit 735df0f

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

Documentation/driver-model/bus.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,11 @@ struct bus_attribute {
124124
ssize_t (*store)(struct bus_type *, const char * buf, size_t count);
125125
};
126126

127-
Bus drivers can export attributes using the BUS_ATTR macro that works
128-
similarly to the DEVICE_ATTR macro for devices. For example, a definition
129-
like this:
127+
Bus drivers can export attributes using the BUS_ATTR_RW macro that works
128+
similarly to the DEVICE_ATTR_RW macro for devices. For example, a
129+
definition like this:
130130

131-
static BUS_ATTR(debug,0644,show_debug,store_debug);
131+
static BUS_ATTR_RW(debug);
132132

133133
is equivalent to declaring:
134134

Documentation/filesystems/sysfs.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,9 @@ struct bus_attribute {
344344

345345
Declaring:
346346

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);
348350

349351
Creation/Removal:
350352

0 commit comments

Comments
 (0)