[PATCH 0/5] ACPI: sysfs: manage sysfs attributes through device core

Thomas Weißschuh posted 5 patches 1 year, 8 months ago
There is a newer version of this series
drivers/acpi/device_sysfs.c | 229 +++++++++++++++++++++-----------------------
drivers/acpi/internal.h     |   3 +-
drivers/acpi/scan.c         |   6 +-
include/acpi/acpi_bus.h     |   2 +-
4 files changed, 114 insertions(+), 126 deletions(-)
[PATCH 0/5] ACPI: sysfs: manage sysfs attributes through device core
Posted by Thomas Weißschuh 1 year, 8 months ago
Simplify the lifecycle of the sysfs attributes by letting the device
core manage them.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
Thomas Weißschuh (5):
      ACPI: sysfs: convert utf-16 from _STR to utf-8 only once
      ACPI: sysfs: use device lifecycle for _STR result
      ACPI: sysfs: manage attributes as attribute_group
      ACPI: sysfs: manage sysfs attributes through device core
      ACPI: sysfs: remove return value of acpi_device_setup_files()

 drivers/acpi/device_sysfs.c | 229 +++++++++++++++++++++-----------------------
 drivers/acpi/internal.h     |   3 +-
 drivers/acpi/scan.c         |   6 +-
 include/acpi/acpi_bus.h     |   2 +-
 4 files changed, 114 insertions(+), 126 deletions(-)
---
base-commit: 7d91551085d3e7d5eb21c2481565b2be5288f11b
change-id: 20240609-acpi-sysfs-groups-cfa756d16752

Best regards,
-- 
Thomas Weißschuh <linux@weissschuh.net>

Re: [PATCH 0/5] ACPI: sysfs: manage sysfs attributes through device core
Posted by Rafael J. Wysocki 1 year, 7 months ago
On Thu, Jun 13, 2024 at 10:15 PM Thomas Weißschuh <linux@weissschuh.net> wrote:
>
> Simplify the lifecycle of the sysfs attributes by letting the device
> core manage them.
>
> Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
> ---
> Thomas Weißschuh (5):
>       ACPI: sysfs: convert utf-16 from _STR to utf-8 only once
>       ACPI: sysfs: use device lifecycle for _STR result
>       ACPI: sysfs: manage attributes as attribute_group
>       ACPI: sysfs: manage sysfs attributes through device core
>       ACPI: sysfs: remove return value of acpi_device_setup_files()
>
>  drivers/acpi/device_sysfs.c | 229 +++++++++++++++++++++-----------------------
>  drivers/acpi/internal.h     |   3 +-
>  drivers/acpi/scan.c         |   6 +-
>  include/acpi/acpi_bus.h     |   2 +-
>  4 files changed, 114 insertions(+), 126 deletions(-)
> ---

Whole series applied as 6.11 material, thanks!