Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/misc/
Dapds990x.c379 int next_again = chip->again_meas; in apds990x_calc_again() local
384 next_again -= 2; /* ALS saturated. Decrease gain by 2 steps */ in apds990x_calc_again()
386 next_again--; in apds990x_calc_again()
388 next_again += 2; /* Too dark. Increase gain by 2 steps */ in apds990x_calc_again()
390 next_again++; in apds990x_calc_again()
393 if (next_again < 0) in apds990x_calc_again()
394 next_again = 0; in apds990x_calc_again()
395 else if (next_again > APDS990X_MAX_AGAIN) in apds990x_calc_again()
396 next_again = APDS990X_MAX_AGAIN; in apds990x_calc_again()
402 else if (next_again != curr_again && in apds990x_calc_again()
[all …]