]> git.baikalelectronics.ru Git - kernel.git/commit
driver core: core: use DEVICE_ATTR_RO
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 24 Aug 2013 00:07:26 +0000 (17:07 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 24 Aug 2013 00:07:26 +0000 (17:07 -0700)
commitc6f9d1b21bc805a9fd39e7b09bbcb0656fabca62
tree723a699b6fe163c2769e99de107b5802413c174e
parent3e92eb987414520a09d9e67366fc50ceb82a0c7d
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