Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/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()
689 *val = chip->als_cur_info.als_ch0; in tsl2583_read_raw()
691 *val = chip->als_cur_info.als_ch1; in tsl2583_read_raw()
Dtsl2772.c172 struct tsl2772_als_info als_cur_info; member
432 ret = chip->als_cur_info.lux; /* return LAST VALUE */ in tsl2772_get_lux()
440 chip->als_cur_info.als_ch0 = ret; in tsl2772_get_lux()
446 chip->als_cur_info.als_ch1 = ret; in tsl2772_get_lux()
448 if (chip->als_cur_info.als_ch0 >= chip->als_saturation) { in tsl2772_get_lux()
453 if (!chip->als_cur_info.als_ch0) { in tsl2772_get_lux()
455 ret = chip->als_cur_info.lux; in tsl2772_get_lux()
465 lux = ((chip->als_cur_info.als_ch0 * p->ch0) - in tsl2772_get_lux()
466 (chip->als_cur_info.als_ch1 * p->ch1)) / in tsl2772_get_lux()
489 chip->als_cur_info.lux = max_lux; in tsl2772_get_lux()
[all …]