OSDN Git Service

ACPI: thermal: Use thermal_zone_device()
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Wed, 19 Apr 2023 08:33:40 +0000 (10:33 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 27 Apr 2023 17:20:12 +0000 (19:20 +0200)
commit66d39e74bf490fb1ef90e13086b68d6df6e6ad06
treea86e74787adb6e27f917a0968f64095f010b475c
parentba7894be5e57d5c154c793e5411889275e68644e
ACPI: thermal: Use thermal_zone_device()

In order to get the device associated with the thermal zone, let's use
the wrapper thermal_zone_device() instead of accessing directly the
content of the thermal zone device structure.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
[ rjw: Subject adjustment, removal of trailing white space ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/thermal.c