static int mtktspa_get_temp(struct thermal_zone_device *thermal, unsigned long *t) { *t = mtktspa_get_hw_temp(); if ((int)*t >= polling_trip_temp1) thermal->polling_delay = interval * 1000; else if ((int)*t < polling_trip_temp2) thermal->polling_delay = interval * polling_factor2; else thermal->polling_delay = interval * polling_factor1; return 0; }
static int mtktspa_get_temp(struct thermal_zone_device *thermal, unsigned long *t) { *t = mtktspa_get_hw_temp(); return 0; }