Searched refs:als_count (Results 1 – 2 of 2) sorted by relevance
377 int als_count, als_time, ret; in tsl2583_set_als_time() local381 als_count = (chip->als_settings.als_time * 100 + 135) / 270; in tsl2583_set_als_time()382 if (!als_count) in tsl2583_set_als_time()383 als_count = 1; /* ensure at least one cycle */ in tsl2583_set_als_time()386 als_time = (als_count * 27 + 5) / 10; in tsl2583_set_als_time()388 val = 256 - als_count; in tsl2583_set_als_time()399 chip->als_saturation = als_count * 922; /* 90% of full scale */ in tsl2583_set_als_time()
601 int ret, i, als_count, als_time_us; in tsl2772_chip_on() local649 als_count = 256 - chip->settings.als_time; in tsl2772_chip_on()650 als_time_us = als_count * tsl2772_int_time_avail[chip->id][3]; in tsl2772_chip_on()651 chip->als_saturation = als_count * 768; /* 75% of full scale */ in tsl2772_chip_on()