Home
last modified time | relevance | path

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

/linux-4.19.296/drivers/iio/light/
Dgp2ap020a00f.c182 #define GP2AP020A00F_THRESH_REG(th_val_id) (GP2AP020A00F_TL_L_REG + \ argument
183 (th_val_id) * 2)
443 enum gp2ap020a00f_thresh_val_id th_val_id, in gp2ap020a00f_write_event_threshold() argument
452 th_val_id != GP2AP020A00F_THRESH_PL && in gp2ap020a00f_write_event_threshold()
453 th_val_id != GP2AP020A00F_THRESH_PH) in gp2ap020a00f_write_event_threshold()
458 thresh_reg_val = data->thresh_val[th_val_id] / 16; in gp2ap020a00f_write_event_threshold()
460 thresh_reg_val = data->thresh_val[th_val_id] > 16000 ? in gp2ap020a00f_write_event_threshold()
462 data->thresh_val[th_val_id]; in gp2ap020a00f_write_event_threshold()
467 GP2AP020A00F_THRESH_REG(th_val_id), in gp2ap020a00f_write_event_threshold()