diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-12-21 08:54:40 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-01-08 15:17:45 +0100 |
commit | 735df0ff6ece7b8759a744158f5d246fae4739f4 (patch) | |
tree | e0cdd030e78dced5a242e6c5c433a3caf4faa38f /Documentation/driver-model | |
parent | de96e9fea7ba56042f105b6fe163447b280eb800 (diff) | |
download | linux-735df0ff6ece7b8759a744158f5d246fae4739f4.tar.bz2 |
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>
Diffstat (limited to 'Documentation/driver-model')
-rw-r--r-- | Documentation/driver-model/bus.txt | 8 |
1 files changed, 4 insertions, 4 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 { ssize_t (*store)(struct bus_type *, const char * buf, size_t count); }; -Bus drivers can export attributes using the BUS_ATTR macro that works -similarly to the DEVICE_ATTR macro for devices. For example, a definition -like this: +Bus drivers can export attributes using the BUS_ATTR_RW macro that works +similarly to the DEVICE_ATTR_RW macro for devices. For example, a +definition like this: -static BUS_ATTR(debug,0644,show_debug,store_debug); +static BUS_ATTR_RW(debug); is equivalent to declaring: |