]> git.baikalelectronics.ru Git - kernel.git/commit
samples/kobject: Replace foo_ktype's default_attrs field with groups
authorKimberly Brown <kimbrownkd@gmail.com>
Tue, 2 Apr 2019 02:51:24 +0000 (22:51 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Apr 2019 20:06:10 +0000 (22:06 +0200)
commit4c9f2f539334381f1df7a7bab70aa764606c8271
tree004b13a50d58fc29aaa7c9b8ff2e098c94c2809d
parent6e6b424e12c43db8213cb44cf6fc8a9957a05fa7
samples/kobject: Replace foo_ktype's default_attrs field with groups

The kobj_type default_attrs field is being replaced by the
default_groups field. Replace foo_ktype's default_attrs field with
default_groups and use the ATTRIBUTE_GROUPS macro to create
foo_default_groups.

This patch was tested by loading the kset-example module and verifying
that the sysfs files for the attributes in the default group were
created.

Signed-off-by: Kimberly Brown <kimbrownkd@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
samples/kobject/kset-example.c