• Rafael J. Wysocki's avatar
    thermal: trip: Send trip change notifications on all trip updates · bdc22c8d
    Rafael J. Wysocki authored
    The _store callbacks of the trip point temperature and hysteresis sysfs
    attributes invoke thermal_notify_tz_trip_change() to send a notification
    regarding the trip point change, but when trip points are updated by the
    platform firmware, trip point change notifications are not sent.
    
    To make the behavior after a trip point change more consistent,
    modify all of the 3 places where trip point temperature is updated
    to use a new function called thermal_zone_set_trip_temp() for this
    purpose and make that function call thermal_notify_tz_trip_change().
    
    Note that trip point hysteresis can only be updated via sysfs and
    trip_point_hyst_store() calls thermal_notify_tz_trip_change() already,
    so this code path need not be changed.
    Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
    Acked-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
    bdc22c8d
int340x_thermal_zone.c 6.69 KB