driver core: core: use DEVICE_ATTR_RO
commitc5e064a6981603de65c61c4989856e984c7ad66d
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 24 Aug 2013 00:07:26 +0000 (23 17:07 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 24 Aug 2013 00:07:26 +0000 (23 17:07 -0700)
tree723a699b6fe163c2769e99de107b5802413c174e
parent2581c9cc0de6eeba8d5553c98aab6e0f75d184e0
driver core: core: use DEVICE_ATTR_RO

Use DEVICE_ATTR_RO() instead of a "raw" __ATTR macro, making it easier
to audit exactly what is going on with the sysfs files.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/core.c