Home
last modified time | relevance | path

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

/openbmc/linux/drivers/iio/light/
H A Dmax44000.c104 #define MAX44000_ALSTIM_SHIFT(alstim) (2 * (alstim)) argument
209 int alstim, ret; in max44000_read_alsval() local
215 alstim = ret = max44000_read_alstim(data); in max44000_read_alsval()
233 return regval << MAX44000_ALSTIM_SHIFT(alstim); in max44000_read_alsval()
266 int alstim, alspga; in max44000_read_raw() local
331 alstim = ret = max44000_read_alstim(data); in max44000_read_raw()
337 *val2 = max44000_int_time_avail_ns_array[alstim]; in max44000_read_raw()
359 int alstim = find_closest_descending(valns, in max44000_write_raw() local
363 ret = max44000_write_alstim(data, alstim); in max44000_write_raw()