Lines Matching refs:lux
3 * Device driver for monitoring ambient light intensity in (lux) and proximity
149 u16 lux;
401 * tsl2772_get_lux() - Reads and calculates current lux value.
407 * device gain. The code supports multiple lux equations through the lux table
408 * coefficients. A lux gain trim is applied to each lux equation, and then the
409 * maximum lux within the interval 0..65535 is selected.
434 ret = chip->als_cur_info.lux; /* return LAST VALUE */
457 ret = chip->als_cur_info.lux;
465 int lux;
467 lux = ((chip->als_cur_info.als_ch0 * p->ch0) -
473 * and is a multiplier for the lux. A trim of 1000 makes no
474 * changes to the lux, less than 1000 scales it down, and
477 lux = (lux * chip->settings.als_gain_trim) / 1000;
479 if (lux > TSL2772_LUX_CALC_OVER_FLOW) {
484 max_lux = max(max_lux, lux);
491 chip->als_cur_info.lux = max_lux;
632 /* Load up the proper lux table. */
681 "%s: failed to get lux\n", __func__);
1243 *val = chip->als_cur_info.lux;