Home
last modified time | relevance | path

Searched refs:NBR_AVG_SAMPLES (Results 1 – 1 of 1) sorted by relevance

/drivers/power/supply/
Dab8500_fg.c45 #define NBR_AVG_SAMPLES 20 macro
108 int samples[NBR_AVG_SAMPLES];
109 time64_t time_stamps[NBR_AVG_SAMPLES];
391 if (avg->pos == NBR_AVG_SAMPLES) in ab8500_fg_add_cap_sample()
394 if (avg->nbr_samples < NBR_AVG_SAMPLES) in ab8500_fg_add_cap_sample()
424 for (i = 0; i < NBR_AVG_SAMPLES; i++) { in ab8500_fg_clear_cap_samples()
445 for (i = 0; i < NBR_AVG_SAMPLES; i++) { in ab8500_fg_fill_cap_sample()
451 avg->nbr_samples = NBR_AVG_SAMPLES; in ab8500_fg_fill_cap_sample()
452 avg->sum = sample * NBR_AVG_SAMPLES; in ab8500_fg_fill_cap_sample()