x86/platform/uv: use default_groups in kobj_type
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Dec 2021 14:13:32 +0000 (15:13 +0100)
committerHans de Goede <hdegoede@redhat.com>
Thu, 30 Dec 2021 18:32:23 +0000 (19:32 +0100)
commitafca4cbe3a25dbe16424e6199793b38f41a17ed9
treeb214d237e9c67a1e7146b1ae64feadfc5f36de68
parent55fa3c9665bfcf32b21af8ecdeb48d5c5177d8d7
x86/platform/uv: use default_groups in kobj_type

There are currently 2 ways to create a set of sysfs files for a
kobj_type, through the default_attrs field, and the default_groups
field.  Move the uv sysfs code to use default_groups field which has
been the preferred way since aa30f47cf666 ("kobject: Add support for
default attribute groups to kobj_type") so that we can soon get rid of
the obsolete default_attrs field.

Cc: Justin Ernst <justin.ernst@hpe.com>
Cc: Hans de Goede <hdegoede@redhat.com>
Cc: Mark Gross <markgross@kernel.org>
Cc: platform-driver-x86@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20211229141332.2552428-1-gregkh@linuxfoundation.org
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/uv_sysfs.c