kernel/ksysfs.c: use helper macro __ATTR_RW
authorMiaohe Lin <linmiaohe@huawei.com>
Mon, 28 Feb 2022 23:02:10 +0000 (10:02 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 28 Feb 2022 23:02:10 +0000 (10:02 +1100)
commitadf61b7a84e1cad54f4b12c96c57dbde72fa4001
tree35313b3c6633c6a83e8e83baeb889f29e329878e
parent590f90321998324d05271964a116a425ba0753a8
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: Stephen Rothwell <sfr@canb.auug.org.au>
kernel/ksysfs.c