Searched refs:threshold_lo (Results 1 – 2 of 2) sorted by relevance
52 unsigned threshold_lo[2]; /* GND-Open and Supply-Open thresholds */ member220 if (val == priv->threshold_lo[mode]) in hi8435_write_event_value()223 priv->threshold_lo[mode] = val; in hi8435_write_event_value()226 if ((priv->threshold_hi[mode] - priv->threshold_lo[mode]) % 2) in hi8435_write_event_value()230 if (val < 3 || val > 22 || val < (priv->threshold_lo[mode] + 2)) in hi8435_write_event_value()239 if ((priv->threshold_hi[mode] - priv->threshold_lo[mode]) % 2) in hi8435_write_event_value()240 priv->threshold_lo[mode]++; in hi8435_write_event_value()254 reg = priv->threshold_hi[mode] - priv->threshold_lo[mode]; in hi8435_write_event_value()257 reg |= (priv->threshold_hi[mode] + priv->threshold_lo[mode]); in hi8435_write_event_value()512 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()