driver core: device.h: add RW and RO attribute macros
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 14 Jul 2013 23:05:54 +0000 (16:05 -0700)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Mon, 22 Dec 2014 17:44:50 +0000 (10:44 -0700)
commita6f79c5f0b1f34e8de72834eaa54e7ecba2efad9
treedc2b916c8fe7e7b86fcda5388fec2443aa9d6a72
parent8bb495e3f02401ee6f76d1b1d77f3ac9f079e376
driver core: device.h: add RW and RO attribute macros

Make it easier to create attributes without having to always audit the
mode settings.

Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit aead4f11289457e4c4dd8c65e901740fe18e5750)
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
include/linux/device.h