Home
last modified time | relevance | path

Searched refs:th_val_id (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/iio/light/
H A Dgp2ap020a00f.c179 #define GP2AP020A00F_THRESH_REG(th_val_id) (GP2AP020A00F_TL_L_REG + \ argument
180 (th_val_id) * 2)
439 enum gp2ap020a00f_thresh_val_id th_val_id, in gp2ap020a00f_write_event_threshold() argument
448 th_val_id != GP2AP020A00F_THRESH_PL && in gp2ap020a00f_write_event_threshold()
449 th_val_id != GP2AP020A00F_THRESH_PH) in gp2ap020a00f_write_event_threshold()
454 thresh_reg_val = data->thresh_val[th_val_id] / 16; in gp2ap020a00f_write_event_threshold()
456 thresh_reg_val = data->thresh_val[th_val_id] > 16000 ? in gp2ap020a00f_write_event_threshold()
458 data->thresh_val[th_val_id]; in gp2ap020a00f_write_event_threshold()
463 GP2AP020A00F_THRESH_REG(th_val_id), in gp2ap020a00f_write_event_threshold()