Searched refs:threshold_hi (Results 1 - 2 of 2) sorted by relevance

/linux-4.4.14/drivers/iio/adc/
H A Dhi8435.c57 unsigned threshold_hi[2]; /* GND-Open and Supply-Open thresholds */ member in struct:hi8435_priv
190 if (val < 2 || val > 21 || (val + 2) > priv->threshold_hi[mode]) hi8435_write_event_value()
199 if ((priv->threshold_hi[mode] - priv->threshold_lo[mode]) % 2) hi8435_write_event_value()
200 priv->threshold_hi[mode]--; hi8435_write_event_value()
206 if (val == priv->threshold_hi[mode]) hi8435_write_event_value()
209 priv->threshold_hi[mode] = val; hi8435_write_event_value()
212 if ((priv->threshold_hi[mode] - priv->threshold_lo[mode]) % 2) hi8435_write_event_value()
227 reg = priv->threshold_hi[mode] - priv->threshold_lo[mode]; hi8435_write_event_value()
230 reg |= (priv->threshold_hi[mode] + priv->threshold_lo[mode]); hi8435_write_event_value()
478 priv->threshold_hi[0] = priv->threshold_hi[1] = 4; hi8435_probe()
/linux-4.4.14/drivers/misc/
H A Dbh1770glc.c318 u16 threshold_hi, u16 threshold_lo) bh1770_lux_update_thresholds()
332 if (threshold_hi != BH1770_LUX_RANGE && threshold_hi != 0) bh1770_lux_update_thresholds()
333 threshold_hi = bh1770_lux_adjusted_to_raw(chip, threshold_hi); bh1770_lux_update_thresholds()
338 if (chip->lux_thres_hi_onchip == threshold_hi && bh1770_lux_update_thresholds()
342 chip->lux_thres_hi_onchip = threshold_hi; bh1770_lux_update_thresholds()
345 data[0] = threshold_hi; bh1770_lux_update_thresholds()
346 data[1] = threshold_hi >> 8; bh1770_lux_update_thresholds()
317 bh1770_lux_update_thresholds(struct bh1770_chip *chip, u16 threshold_hi, u16 threshold_lo) bh1770_lux_update_thresholds() argument

Completed in 125 milliseconds