]> git.baikalelectronics.ru Git - kernel.git/commit
kobject: kobj_type: remove default_attrs
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Jan 2022 13:31:51 +0000 (14:31 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Apr 2022 13:39:19 +0000 (15:39 +0200)
commit1d35998f25c02da486541306aaa58db2e53ec3d5
treeec9cd56192f053bd1d3aae24424c5d52d03a5a8a
parentf92a87cbbd7ff971bd6bd8205b108e7c86f5d834
kobject: kobj_type: remove default_attrs

Now that all in-kernel users of default_attrs for the kobj_type are gone
and converted to properly use the default_groups pointer instead, it can
be safely removed.

There is one standard way to create sysfs files in a kobj_type, and not
two like before, causing confusion as to which should be used.

Cc: "Rafael J. Wysocki" <rafael@kernel.org>
Link: https://lore.kernel.org/r/20220106133151.607703-1-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/sysfs/file.c
include/linux/kobject.h
lib/kobject.c