• Rafael J. Wysocki's avatar
    thermal: intel: intel_soc_dts_iosf: Untangle update_trip_temp() · 0b28ba27
    Rafael J. Wysocki authored
    Function update_trip_temp() is currently used for the initialization
    of trip points as well as for changing trip point temperatures in
    sys_set_trip_temp().
    
    This is quite confusing and passing the value of dts->trip_types[trip]
    to it so that it can store that value in the same memory location is
    not particularly useful, because it only is necessary to set the
    trip point type once, at the initialization time.
    
    For this reason, drop the last argument from update_trip_temp() and
    introduce configure_trip() calling the former internally for the
    initial configuration of trip points.
    
    Modify the majority of update_trip_temp() callers to use
    configure_trip() instead of it.
    Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
    Reviewed-by: default avatarSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
    0b28ba27
intel_soc_dts_iosf.c 10.9 KB