Why should temp be overwritten here?
You are correct. This is wrong.
I think we should call get_trip_temp() before calling update_trip_temp()
instead of passing a zero temperature parameter
update_trip_temp() is sort of a misnomer, because it is used for
initializing a trip point for example in
intel_soc_dts_iosf_add_read_only_critical_trip() and in this
particular case get_trip_temp() need not be called before it.
This driver seems to be in need of a cleanup.