Home
last modified time | relevance | path

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

/linux/drivers/iio/adc/
H A Dhi8435.c47 unsigned threshold_lo[2]; /* GND-Open and Supply-Open thresholds */ member
215 if (val == priv->threshold_lo[mode]) in hi8435_write_event_value()
218 priv->threshold_lo[mode] = val; in hi8435_write_event_value()
221 if ((priv->threshold_hi[mode] - priv->threshold_lo[mode]) % 2) in hi8435_write_event_value()
225 if (val < 3 || val > 22 || val < (priv->threshold_lo[mode] + 2)) in hi8435_write_event_value()
234 if ((priv->threshold_hi[mode] - priv->threshold_lo[mode]) % 2) in hi8435_write_event_value()
235 priv->threshold_lo[mode]++; in hi8435_write_event_value()
249 reg = priv->threshold_hi[mode] - priv->threshold_lo[mode]; in hi8435_write_event_value()
252 reg |= (priv->threshold_hi[mode] + priv->threshold_lo[mode]); in hi8435_write_event_value()
504 priv->threshold_lo[0] = priv->threshold_lo[1] = 2; in hi8435_probe()