Lines Matching refs:bat_temp
97 int bat_temp; member
574 int bat_temp; in ab8500_btemp_periodic_work() local
584 bat_temp = ab8500_btemp_measure_temp(di); in ab8500_btemp_periodic_work()
591 if ((bat_temp == di->prev_bat_temp) || !di->initialized) { in ab8500_btemp_periodic_work()
592 if ((di->bat_temp != di->prev_bat_temp) || !di->initialized) { in ab8500_btemp_periodic_work()
594 di->bat_temp = bat_temp; in ab8500_btemp_periodic_work()
597 } else if (bat_temp < di->prev_bat_temp) { in ab8500_btemp_periodic_work()
598 di->bat_temp--; in ab8500_btemp_periodic_work()
600 } else if (bat_temp > di->prev_bat_temp) { in ab8500_btemp_periodic_work()
601 di->bat_temp++; in ab8500_btemp_periodic_work()
604 di->prev_bat_temp = bat_temp; in ab8500_btemp_periodic_work()
766 temp = di->bat_temp * 10; in ab8500_btemp_get_temp()
772 temp = di->bat_temp * 10; in ab8500_btemp_get_temp()
777 temp = di->bat_temp * 10; in ab8500_btemp_get_temp()
782 temp = di->bat_temp * 10; in ab8500_btemp_get_temp()
787 temp = di->bat_temp * 10; in ab8500_btemp_get_temp()
789 temp = di->bat_temp * 10; in ab8500_btemp_get_temp()
803 return btemp->bat_temp * 1000; in ab8500_btemp_get_batctrl_temp()