aboutsummaryrefslogtreecommitdiffstats
path: root/d99.patch
diff options
Diffstat (limited to 'd99.patch')
-rw-r--r--d99.patch62
1 files changed, 0 insertions, 62 deletions
diff --git a/d99.patch b/d99.patch
deleted file mode 100644
index c993196623b5c2..00000000000000
--- a/d99.patch
+++ /dev/null
@@ -1,62 +0,0 @@
-From foo@baz Wed Nov 30 14:34:22 CET 2016
-Date: Wed, 30 Nov 2016 14:34:22 +0100
-To: Greg KH <gregkh@linuxfoundation.org>
-From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-Subject: [PATCH] driver core: remove DRIVER_ATTR
-
-DRIVER_ATTR is no longer in use, and driver authors should be using
-DRIVER_ATTR_RW() or DRIVER_ATTR_RO() or DRIVER_ATTR_WO() instead in
-order to always get the permissions correct. So remove it so that no
-one can use it anymore.
-
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-
----
- Documentation/driver-model/driver.txt | 7 ++++---
- Documentation/filesystems/sysfs.txt | 3 ++-
- include/linux/device.h | 2 --
- 3 files changed, 6 insertions(+), 6 deletions(-)
-
-
---- a/Documentation/driver-model/driver.txt
-+++ b/Documentation/driver-model/driver.txt
-@@ -196,12 +196,13 @@ struct driver_attribute {
- };
-
- Device drivers can export attributes via their sysfs directories.
--Drivers can declare attributes using a DRIVER_ATTR macro that works
--identically to the DEVICE_ATTR macro.
-+Drivers can declare attributes using a DRIVER_ATTR_RW and DRIVER_ATTR_RO
-+macro that works identically to the DEVICE_ATTR_RW and DEVICE_ATTR_RO
-+macros.
-
- Example:
-
--DRIVER_ATTR(debug,0644,show_debug,store_debug);
-+DRIVER_ATTR_RW(debug);
-
- This is equivalent to declaring:
-
---- a/Documentation/filesystems/sysfs.txt
-+++ b/Documentation/filesystems/sysfs.txt
-@@ -366,7 +366,8 @@ struct driver_attribute {
-
- Declaring:
-
--DRIVER_ATTR(_name, _mode, _show, _store)
-+DRIVER_ATTR_RO(_name)
-+DRIVER_ATTR_RW(_name)
-
- Creation/Removal:
-
---- a/include/linux/device.h
-+++ b/include/linux/device.h
-@@ -307,8 +307,6 @@ struct driver_attribute {
- size_t count);
- };
-
--#define DRIVER_ATTR(_name, _mode, _show, _store) \
-- struct driver_attribute driver_attr_##_name = __ATTR(_name, _mode, _show, _store)
- #define DRIVER_ATTR_RW(_name) \
- struct driver_attribute driver_attr_##_name = __ATTR_RW(_name)
- #define DRIVER_ATTR_RO(_name) \