]> git.baikalelectronics.ru Git - kernel.git/commit
driver core: remove DRIVER_ATTR
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Sep 2017 10:17:57 +0000 (12:17 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Sep 2017 07:20:33 +0000 (09:20 +0200)
commit65a6e75445d02c5b554f0b134e97bb21a34e15ea
tree6c5412644403983343d17b5729c13afd70bf6016
parentd25e33ccf05a3ae9b62fd19be59e4a6e8f3865f5
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.

Acked-by: Alan Tull <atull@kernel.org>
Reviewed-by: Moritz Fischer <mdf@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/driver-model/driver.txt
Documentation/filesystems/sysfs.txt
include/linux/device.h