Searched refs:threshold_lo (Results 1 – 2 of 2) sorted by relevance
50 unsigned threshold_lo[2]; /* GND-Open and Supply-Open thresholds */ member218 if (val == priv->threshold_lo[mode]) in hi8435_write_event_value()221 priv->threshold_lo[mode] = val; in hi8435_write_event_value()224 if ((priv->threshold_hi[mode] - priv->threshold_lo[mode]) % 2) in hi8435_write_event_value()228 if (val < 3 || val > 22 || val < (priv->threshold_lo[mode] + 2)) in hi8435_write_event_value()237 if ((priv->threshold_hi[mode] - priv->threshold_lo[mode]) % 2) in hi8435_write_event_value()238 priv->threshold_lo[mode]++; in hi8435_write_event_value()252 reg = priv->threshold_hi[mode] - priv->threshold_lo[mode]; in hi8435_write_event_value()255 reg |= (priv->threshold_hi[mode] + priv->threshold_lo[mode]); in hi8435_write_event_value()507 priv->threshold_lo[0] = priv->threshold_lo[1] = 2; in hi8435_probe()
301 u16 threshold_hi, u16 threshold_lo) in bh1770_lux_update_thresholds() argument318 if (threshold_lo != BH1770_LUX_RANGE && threshold_lo != 0) in bh1770_lux_update_thresholds()319 threshold_lo = bh1770_lux_adjusted_to_raw(chip, threshold_lo); in bh1770_lux_update_thresholds()322 chip->lux_thres_lo_onchip == threshold_lo) in bh1770_lux_update_thresholds()326 chip->lux_thres_lo_onchip = threshold_lo; in bh1770_lux_update_thresholds()330 data[2] = threshold_lo; in bh1770_lux_update_thresholds()331 data[3] = threshold_lo >> 8; in bh1770_lux_update_thresholds()