ACPI: acpi_pad: Use dev groups for sysfs
authorMichal Wilczynski <michal.wilczynski@intel.com>
Wed, 18 Oct 2023 19:09:44 +0000 (22:09 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 24 Oct 2023 18:54:29 +0000 (20:54 +0200)
commitd7228c7169e7f84013a909055c52585a8d4e1ab0
treec537e35ac481cf6878658327d1f08adaed8d9f1c
parentdd0261bb9e4435a426cd86a28516129c46929ea4
ACPI: acpi_pad: Use dev groups for sysfs

Change the way sysfs files are created. Use dev_groups, as it's a
better approach - it allows to declare attributes, and the core code
would take care of the lifecycle of those objects.

Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Michal Wilczynski <michal.wilczynski@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpi_pad.c