Skip to content

Commit

Permalink
Merge branch 'acpi-fan'
Browse files Browse the repository at this point in the history
* acpi-fan:
  ACPI: fan: Initialize performance state sysfs attribute
  • Loading branch information
Rafael J. Wysocki committed Nov 19, 2020
2 parents 4fba15f + 7dc7a8b commit de15e20
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/acpi/fan.c
Original file line number Diff line number Diff line change
@@ -352,6 +352,7 @@ static int acpi_fan_get_fps(struct acpi_device *device)
struct acpi_fan_fps *fps = &fan->fps[i];

snprintf(fps->name, ACPI_FPS_NAME_LEN, "state%d", i);
sysfs_attr_init(&fps->dev_attr.attr);
fps->dev_attr.show = show_state;
fps->dev_attr.store = NULL;
fps->dev_attr.attr.name = fps->name;

0 comments on commit de15e20

Please sign in to comment.