OSDN Git Service

thermal: Add a thermal zone id accessor
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Wed, 1 Mar 2023 20:14:40 +0000 (21:14 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 3 Mar 2023 19:45:02 +0000 (20:45 +0100)
commit3034f859b90d49ee661fad4d23593589d0d37779
treeaeed1e47c79c45e5a349bc15b4c9ce6d0d997e79
parent25e43976b215b7634224afe9bc21270f4222aa4f
thermal: Add a thermal zone id accessor

In order to get the thermal zone id but without directly accessing the
thermal zone device structure, add an accessor.

Use the accessor in the hwmon_scmi and acpi_thermal.

No functional change intented.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/thermal.c
drivers/hwmon/scmi-hwmon.c
drivers/thermal/thermal_core.c
include/linux/thermal.h