Lines Matching refs:lux
3 * Device driver for monitoring ambient light intensity in (lux) and proximity
147 u16 lux;
399 * tsl2772_get_lux() - Reads and calculates current lux value.
405 * device gain. The code supports multiple lux equations through the lux table
406 * coefficients. A lux gain trim is applied to each lux equation, and then the
407 * maximum lux within the interval 0..65535 is selected.
432 ret = chip->als_cur_info.lux; /* return LAST VALUE */
455 ret = chip->als_cur_info.lux;
463 int lux;
465 lux = ((chip->als_cur_info.als_ch0 * p->ch0) -
471 * and is a multiplier for the lux. A trim of 1000 makes no
472 * changes to the lux, less than 1000 scales it down, and
475 lux = (lux * chip->settings.als_gain_trim) / 1000;
477 if (lux > TSL2772_LUX_CALC_OVER_FLOW) {
482 max_lux = max(max_lux, lux);
489 chip->als_cur_info.lux = max_lux;
637 /* Load up the proper lux table. */
686 "%s: failed to get lux\n", __func__);
1248 *val = chip->als_cur_info.lux;