Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/iio/light/
Dtsl2583.c101 struct tsl2583_als_info als_cur_info; member
185 ret = chip->als_cur_info.lux; /* return LAST VALUE */ in tsl2583_get_lux()
219 chip->als_cur_info.als_ch0 = ch0; in tsl2583_get_lux()
220 chip->als_cur_info.als_ch1 = ch1; in tsl2583_get_lux()
232 chip->als_cur_info.lux = 0; in tsl2583_get_lux()
261 chip->als_cur_info.lux = 0; in tsl2583_get_lux()
296 chip->als_cur_info.lux = lux; in tsl2583_get_lux()
687 *val = chip->als_cur_info.als_ch0; in tsl2583_read_raw()
689 *val = chip->als_cur_info.als_ch1; in tsl2583_read_raw()
Dtsl2772.c174 struct tsl2772_als_info als_cur_info; member
434 ret = chip->als_cur_info.lux; /* return LAST VALUE */ in tsl2772_get_lux()
442 chip->als_cur_info.als_ch0 = ret; in tsl2772_get_lux()
448 chip->als_cur_info.als_ch1 = ret; in tsl2772_get_lux()
450 if (chip->als_cur_info.als_ch0 >= chip->als_saturation) { in tsl2772_get_lux()
455 if (!chip->als_cur_info.als_ch0) { in tsl2772_get_lux()
457 ret = chip->als_cur_info.lux; in tsl2772_get_lux()
467 lux = ((chip->als_cur_info.als_ch0 * p->ch0) - in tsl2772_get_lux()
468 (chip->als_cur_info.als_ch1 * p->ch1)) / in tsl2772_get_lux()
491 chip->als_cur_info.lux = max_lux; in tsl2772_get_lux()
[all …]