Searched refs:statP (Results 1 – 1 of 1) sorted by relevance
822 struct tsl2x7x_prox_stat *statP) in tsl2x7x_prox_calculate() argument832 statP->min = INT_MAX; in tsl2x7x_prox_calculate()833 statP->max = INT_MIN; in tsl2x7x_prox_calculate()836 statP->min = min(statP->min, data[i]); in tsl2x7x_prox_calculate()837 statP->max = max(statP->max, data[i]); in tsl2x7x_prox_calculate()840 statP->mean = sample_sum / length; in tsl2x7x_prox_calculate()843 tmp = data[i] - statP->mean; in tsl2x7x_prox_calculate()846 statP->stddev = int_sqrt((long)sample_sum)/length; in tsl2x7x_prox_calculate()