]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit932ed16bc0cee7687f0f668586aa5ee31ca9c886
treecf44645fb0f149087eeeaf02e615b04c1fa742ca
parent23185feab9a7578c8e8d0fe1e839031853af5cca
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