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()
653 int ret, lux_val; in tsl2772_als_calibrate() local677 lux_val = tsl2772_get_lux(indio_dev); in tsl2772_als_calibrate()678 if (lux_val < 0) { in tsl2772_als_calibrate()681 return lux_val; in tsl2772_als_calibrate()683 if (lux_val == 0) in tsl2772_als_calibrate()687 lux_val; in tsl2772_als_calibrate()