Searched refs:it_ms (Results 1 – 1 of 1) sorted by relevance
392 int ret, it_ms; in vl6180_set_it() local394 it_ms = DIV_ROUND_CLOSEST(val2, 1000); /* round to ms */ in vl6180_set_it()395 if (val != 0 || it_ms < 1 || it_ms > 512) in vl6180_set_it()403 ret = vl6180_write_word(data->client, VL6180_ALS_IT, it_ms - 1); in vl6180_set_it()406 data->als_it_ms = it_ms; in vl6180_set_it()