Searched refs:lux_val (Results 1 – 2 of 2) sorted by relevance
313 int lux_val; in tsl2583_als_calibrate() local337 lux_val = tsl2583_get_lux(indio_dev); in tsl2583_als_calibrate()338 if (lux_val < 0) { in tsl2583_als_calibrate()341 return lux_val; in tsl2583_als_calibrate()345 if (lux_val == 0) { in tsl2583_als_calibrate()353 * chip->als_settings.als_gain_trim) / lux_val); in tsl2583_als_calibrate()
654 int ret, lux_val; in tsl2772_als_calibrate() local678 lux_val = tsl2772_get_lux(indio_dev); in tsl2772_als_calibrate()679 if (lux_val < 0) { in tsl2772_als_calibrate()682 return lux_val; in tsl2772_als_calibrate()684 if (lux_val == 0) in tsl2772_als_calibrate()688 lux_val; in tsl2772_als_calibrate()