diff options
| author | Thomas Weißschuh <linux@weissschuh.net> | 2024-07-09 22:37:27 +0200 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2024-08-02 16:44:22 +0200 |
| commit | cd4884724500232480cf79d8762f3cd716ba4c1b (patch) | |
| tree | 0a19108ebb592c84d8e8a958e63b1589ac010202 /drivers/acpi/scan.c | |
| parent | f6bae04a40f4441c62f4f8cd3bbe0ecf8b54033e (diff) | |
| download | linux-cd4884724500232480cf79d8762f3cd716ba4c1b.tar.gz linux-cd4884724500232480cf79d8762f3cd716ba4c1b.tar.bz2 linux-cd4884724500232480cf79d8762f3cd716ba4c1b.zip | |
ACPI: sysfs: manage sysfs attributes through device core
Now that the ACPI sysfs attributes are organized around an
attribute_group, the device core can manage them.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://patch.msgid.link/20240709-acpi-sysfs-groups-v2-4-058ab0667fa8@weissschuh.net
[ rjw: Changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/scan.c')
| -rw-r--r-- | drivers/acpi/scan.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index 59771412686b..14dba8f6faff 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c @@ -1822,6 +1822,7 @@ void acpi_init_device_object(struct acpi_device *device, acpi_handle handle, device->dev.parent = parent ? &parent->dev : NULL; device->dev.release = release; device->dev.bus = &acpi_bus_type; + device->dev.groups = acpi_groups; fwnode_init(&device->fwnode, &acpi_device_fwnode_ops); acpi_set_device_status(device, ACPI_STA_DEFAULT); acpi_device_get_busid(device); |
