Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/iio/adc/
Dhi8435.c56 unsigned threshold_lo[2]; /* GND-Open and Supply-Open thresholds */ member
193 if (val == priv->threshold_lo[mode]) in hi8435_write_event_value()
196 priv->threshold_lo[mode] = val; in hi8435_write_event_value()
199 if ((priv->threshold_hi[mode] - priv->threshold_lo[mode]) % 2) in hi8435_write_event_value()
203 if (val < 3 || val > 22 || val < (priv->threshold_lo[mode] + 2)) in hi8435_write_event_value()
212 if ((priv->threshold_hi[mode] - priv->threshold_lo[mode]) % 2) in hi8435_write_event_value()
213 priv->threshold_lo[mode]++; in hi8435_write_event_value()
227 reg = priv->threshold_hi[mode] - priv->threshold_lo[mode]; in hi8435_write_event_value()
230 reg |= (priv->threshold_hi[mode] + priv->threshold_lo[mode]); in hi8435_write_event_value()
477 priv->threshold_lo[0] = priv->threshold_lo[1] = 2; in hi8435_probe()
/linux-4.4.14/drivers/misc/
Dbh1770glc.c318 u16 threshold_hi, u16 threshold_lo) in bh1770_lux_update_thresholds() argument
335 if (threshold_lo != BH1770_LUX_RANGE && threshold_lo != 0) in bh1770_lux_update_thresholds()
336 threshold_lo = bh1770_lux_adjusted_to_raw(chip, threshold_lo); in bh1770_lux_update_thresholds()
339 chip->lux_thres_lo_onchip == threshold_lo) in bh1770_lux_update_thresholds()
343 chip->lux_thres_lo_onchip = threshold_lo; in bh1770_lux_update_thresholds()
347 data[2] = threshold_lo; in bh1770_lux_update_thresholds()
348 data[3] = threshold_lo >> 8; in bh1770_lux_update_thresholds()