Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/iio/light/
Dgp2ap020a00f.c249 unsigned int thresh_val[4]; member
455 thresh_reg_val = data->thresh_val[th_val_id] / 16; in gp2ap020a00f_write_event_threshold()
457 thresh_reg_val = data->thresh_val[th_val_id] > 16000 ? in gp2ap020a00f_write_event_threshold()
459 data->thresh_val[th_val_id]; in gp2ap020a00f_write_event_threshold()
917 if (output_val > priv->thresh_val[thresh_val_id]) in gp2ap020a00f_thresh_event_handler()
931 if (output_val < priv->thresh_val[thresh_val_id]) in gp2ap020a00f_thresh_event_handler()
1068 data->thresh_val[thresh_val_id] = val; in gp2ap020a00f_write_event_val()
1097 *val = data->thresh_val[GP2AP020A00F_THRESH_VAL_ID(thresh_reg_l)]; in gp2ap020a00f_read_event_val()
1123 if (data->thresh_val[GP2AP020A00F_THRESH_PL] == 0) in gp2ap020a00f_write_prox_event_config()
1126 if (data->thresh_val[GP2AP020A00F_THRESH_PH] == 0) in gp2ap020a00f_write_prox_event_config()