Searched refs:vis_data (Results 1 – 1 of 1) sorted by relevance
/linux-6.12.1/drivers/iio/light/ |
D | ltr501.c | 71 #define LTR501_LUX_CONV(vis_coeff, vis_data, ir_coeff, ir_data) \ argument 72 ((vis_coeff * vis_data) - (ir_coeff * ir_data)) 309 static unsigned long ltr501_calculate_lux(u16 vis_data, u16 ir_data) in ltr501_calculate_lux() argument 313 if (vis_data == 0) in ltr501_calculate_lux() 317 ratio = DIV_ROUND_UP(ir_data * 100, ir_data + vis_data); in ltr501_calculate_lux() 320 lux = LTR501_LUX_CONV(1774, vis_data, -1105, ir_data); in ltr501_calculate_lux() 322 lux = LTR501_LUX_CONV(3772, vis_data, 1336, ir_data); in ltr501_calculate_lux() 324 lux = LTR501_LUX_CONV(1690, vis_data, 169, ir_data); in ltr501_calculate_lux()
|