Home
last modified time | relevance | path

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

/openbmc/linux/drivers/iio/light/
H A Dgp2ap020a00f.c872 int thresh_val_id, ret; in gp2ap020a00f_thresh_event_handler() local
915 thresh_val_id = in gp2ap020a00f_thresh_event_handler()
917 if (output_val > priv->thresh_val[thresh_val_id]) in gp2ap020a00f_thresh_event_handler()
929 thresh_val_id = in gp2ap020a00f_thresh_event_handler()
931 if (output_val < priv->thresh_val[thresh_val_id]) in gp2ap020a00f_thresh_event_handler()
1027 u8 thresh_val_id; in gp2ap020a00f_write_event_val() local
1034 thresh_val_id = GP2AP020A00F_THRESH_VAL_ID(thresh_reg_l); in gp2ap020a00f_write_event_val()
1036 if (thresh_val_id > GP2AP020A00F_THRESH_PH) { in gp2ap020a00f_write_event_val()
1068 data->thresh_val[thresh_val_id] = val; in gp2ap020a00f_write_event_val()
1069 err = gp2ap020a00f_write_event_threshold(data, thresh_val_id, in gp2ap020a00f_write_event_val()