Searched refs:next_again (Results 1 – 1 of 1) sorted by relevance
394 int next_again = chip->again_meas; in apds990x_calc_again() local399 next_again -= 2; /* ALS saturated. Decrease gain by 2 steps */ in apds990x_calc_again()401 next_again--; in apds990x_calc_again()403 next_again += 2; /* Too dark. Increase gain by 2 steps */ in apds990x_calc_again()405 next_again++; in apds990x_calc_again()408 if (next_again < 0) in apds990x_calc_again()409 next_again = 0; in apds990x_calc_again()410 else if (next_again > APDS990X_MAX_AGAIN) in apds990x_calc_again()411 next_again = APDS990X_MAX_AGAIN; in apds990x_calc_again()417 else if (next_again != curr_again && in apds990x_calc_again()[all …]