Home
last modified time | relevance | path

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

/openbmc/linux/drivers/iio/light/
H A Dtsl2583.c102 struct tsl2583_settings als_settings; member
131 chip->als_settings.als_time = 100; in tsl2583_defaults()
137 chip->als_settings.als_gain = 0; in tsl2583_defaults()
140 chip->als_settings.als_gain_trim = 1000; in tsl2583_defaults()
143 chip->als_settings.als_cal_target = 130; in tsl2583_defaults()
146 memcpy(chip->als_settings.als_device_lux, tsl2583_default_lux, in tsl2583_defaults()
240 for (p = (struct tsl2583_lux *)chip->als_settings.als_device_lux; in tsl2583_get_lux()
250 (gainadj[chip->als_settings.als_gain].ch0 >> 1)) in tsl2583_get_lux()
251 / gainadj[chip->als_settings.als_gain].ch0; in tsl2583_get_lux()
253 (gainadj[chip->als_settings.als_gain].ch1 >> 1)) in tsl2583_get_lux()
[all …]
H A Dtsl2591.c163 struct tsl2591_als_settings als_settings; member
389 struct tsl2591_als_settings settings = chip->als_settings; in tsl2591_wait_adc_complete()
436 struct tsl2591_als_settings *settings = &chip->als_settings; in tsl2591_read_channel_data()
504 struct tsl2591_als_settings als_settings = chip->als_settings; in tsl2591_set_als_gain_int_time() local
510 als_settings.als_int_time | als_settings.als_gain); in tsl2591_set_als_gain_int_time()
520 struct tsl2591_als_settings als_settings = chip->als_settings; in tsl2591_set_als_lower_threshold() local
527 chip->als_settings.als_lower_thresh = als_lower_threshold; in tsl2591_set_als_lower_threshold()
534 if (als_lower_threshold >= als_settings.als_upper_thresh) { in tsl2591_set_als_lower_threshold()
564 struct tsl2591_als_settings als_settings = chip->als_settings; in tsl2591_set_als_upper_threshold() local
574 chip->als_settings.als_upper_thresh = als_upper_threshold; in tsl2591_set_als_upper_threshold()
[all …]