diff options
| author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2026-09-11 15:07:07 +0200 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2026-09-12 20:12:40 +0200 |
| commit | cc695a67458758bfbc0a6d40630d8ecc9ec2533d (patch) | |
| tree | 8fe3d16b4cd4b11bb747a1fe2121e9b6d650c905 /include | |
| parent | 520aac33ff5617e925de31cf3bf069a403763532 (diff) | |
| download | linux-next-cc695a67458758bfbc0a6d40630d8ecc9ec2533d.tar.gz linux-next-cc695a67458758bfbc0a6d40630d8ecc9ec2533d.zip | |
ACPI: fan: Use more suitable cooling device data
Instead of passing an ACPI device object pointer as devdata to
thermal_cooling_device_create(), make acpi_fan_probe() pass a pointer
to struct acpi_fan to it, which allows the callback functions in
fan_cooling_ops to be simplified.
Also avoid using acpi_driver_data() in two functions invoked by the
cooling device callbacks by passing struct acpi_fan pointers instead
of struct acpi_device pointers to them.
No intentional functional impact.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Armin Wolf <W_Armin@gmx.de>
Link: https://patch.msgid.link/3631084.QJadu78ljV@rafael.j.wysocki
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
