static int mtkts_btsmdpa_get_temp(struct thermal_zone_device *thermal, unsigned long *t) { *t = mtkts_btsmdpa_get_hw_temp(); if ((int) *t > 52000) mtkts_btsmdpa_dprintk("T=%d\n", (int) *t); 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 mtkts_btsmdpa_get_temp(struct thermal_zone_device *thermal, unsigned long *t) { *t = mtkts_btsmdpa_get_hw_temp(); if ((int) *t > 52000) xlog_printk(ANDROID_LOG_INFO, "Power/BTSMDPA_Thermal", "T=%d\n", (int) *t); 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; }