kernel/ksysfs.c: use helper macro __ATTR_RW
authorMiaohe Lin <linmiaohe@huawei.com>
Wed, 23 Mar 2022 23:05:35 +0000 (16:05 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Mar 2022 02:00:33 +0000 (19:00 -0700)
commita7cd9a5376aa188529393a802329645dc8c5a63c
treecf44645fb0f149087eeeaf02e615b04c1fa742ca
parent179fd6ba3bacbf7b19cbdf9b14be109d54318394
kernel/ksysfs.c: use helper macro __ATTR_RW

Use helper macro __ATTR_RW to define kobj_attribute to make code more
clear.  Minor readability improvement.

Link: https://lkml.kernel.org/r/20220222112034.48298-1-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/ksysfs.c