Ejemplo n.º 1
0
static int mtktsbattery_get_temp(struct thermal_zone_device *thermal,
			                     unsigned long *t)
{
	*t = mtktsbattery_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;
}
Ejemplo n.º 2
0
static int mtktsbattery_get_temp(struct thermal_zone_device *thermal,
			       unsigned long *t)
{
	*t = mtktsbattery_get_hw_temp();
	return 0;
}