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

/linux-master/drivers/iio/adc/
H A Dhi8435.c50 unsigned threshold_lo[2]; /* GND-Open and Supply-Open thresholds */ member in struct:hi8435_priv
218 if (val == priv->threshold_lo[mode])
221 priv->threshold_lo[mode] = val;
224 if ((priv->threshold_hi[mode] - priv->threshold_lo[mode]) % 2)
228 if (val < 3 || val > 22 || val < (priv->threshold_lo[mode] + 2))
237 if ((priv->threshold_hi[mode] - priv->threshold_lo[mode]) % 2)
238 priv->threshold_lo[mode]++;
252 reg = priv->threshold_hi[mode] - priv->threshold_lo[mode];
255 reg |= (priv->threshold_hi[mode] + priv->threshold_lo[mode]);
507 priv->threshold_lo[
[all...]
/linux-master/drivers/misc/
H A Dbh1770glc.c301 u16 threshold_hi, u16 threshold_lo)
318 if (threshold_lo != BH1770_LUX_RANGE && threshold_lo != 0)
319 threshold_lo = bh1770_lux_adjusted_to_raw(chip, threshold_lo);
322 chip->lux_thres_lo_onchip == threshold_lo)
326 chip->lux_thres_lo_onchip = threshold_lo;
330 data[2] = threshold_lo;
331 data[3] = threshold_lo >> 8;
300 bh1770_lux_update_thresholds(struct bh1770_chip *chip, u16 threshold_hi, u16 threshold_lo) argument

Completed in 198 milliseconds