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)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 15 May 2014 05:26:18 +0000 (07:26 +0200)
commite4c54eac79825ce584b9f59c443a5f938660c7ee
tree90570b3a3286629917aea49d379ae21b8dd8a2af
parent8022b173c23d606976dc96e39439c0b04e117048
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>
include/linux/device.h