static int mtktsxtal_get_temp(struct thermal_zone_device *thermal, unsigned long *t) { *t = mtktsxtal_get_hw_temp(); if (*t > 85000) // abnormal high temp printk("[Power/xtal_Thermal] T_XTAL=%d\n", *t); return 0; }
static int mtktsxtal_get_temp(struct thermal_zone_device *thermal, unsigned long *t) { *t = mtktsxtal_get_hw_temp(); return 0; }