Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/staging/iio/light/
Dtsl2583.c405 int als_count; in taos_chip_on() local
417 als_count = (chip->taos_settings.als_time * 100 + 135) / 270; in taos_chip_on()
418 if (als_count == 0) in taos_chip_on()
419 als_count = 1; /* ensure at least one cycle */ in taos_chip_on()
422 als_time = (als_count * 27 + 5) / 10; in taos_chip_on()
423 chip->taos_config[TSL258X_ALS_TIME] = 256 - als_count; in taos_chip_on()
429 chip->als_saturation = als_count * 922; /* 90% of full scale */ in taos_chip_on()
Dtsl2x7x_core.c634 int als_count; in tsl2x7x_chip_on() local
680 als_count = (chip->tsl2x7x_settings.als_time * 100 + 135) / 270; in tsl2x7x_chip_on()
681 if (als_count == 0) in tsl2x7x_chip_on()
682 als_count = 1; /* ensure at least one cycle */ in tsl2x7x_chip_on()
685 als_time = (als_count * 27 + 5) / 10; in tsl2x7x_chip_on()
686 chip->tsl2x7x_config[TSL2X7X_ALS_TIME] = 256 - als_count; in tsl2x7x_chip_on()
695 chip->als_saturation = als_count * 922; /* 90% of full scale */ in tsl2x7x_chip_on()