diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2023-08-10 21:17:36 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2023-08-11 18:44:45 +0200 |
commit | 4effd28e61e768bcc2017c58cd23bd0846649ac4 (patch) | |
tree | 274dd31ae03146a7754fa3729918ce74e9a541ae /rust/macros/paste.rs | |
parent | 02a49aaceff4a229d775b82ccaaafe59fe16b8f5 (diff) |
thermal: intel: intel_soc_dts_iosf: Use struct thermal_trip
Because the number of trip points in each thermal zone and their
types are known to intel_soc_dts_iosf_init() prior to the registration
of the thermal zones, make it create an array of struct thermal_trip
entries in each struct intel_soc_dts_sensor_entry object and make
add_dts_thermal_zone() use thermal_zone_device_register_with_trips()
for thermal zone registration and pass that array as its second
argument.
Drop the sys_get_trip_temp() and sys_get_trip_type() callback
functions along with the respective callback pointers in
tzone_ops, because they are not necessary any more.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Diffstat (limited to 'rust/macros/paste.rs')
0 files changed, 0 insertions, 0 deletions