Home
last modified time | relevance | path

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

/linux/drivers/iio/resolver/
H A Dad2s1210.c644 unsigned int high_reg_val, low_reg_val, hysteresis; in ad2s1210_set_lot_high_threshold() local
660 ret = regmap_read(st->regmap, AD2S1210_REG_LOT_LOW_THRD, &low_reg_val); in ad2s1210_set_lot_high_threshold()
664 hysteresis = high_reg_val - low_reg_val; in ad2s1210_set_lot_high_threshold()
666 low_reg_val = high_reg_val - hysteresis; in ad2s1210_set_lot_high_threshold()
672 return regmap_write(st->regmap, AD2S1210_REG_LOT_LOW_THRD, low_reg_val); in ad2s1210_set_lot_high_threshold()
678 unsigned int high_reg_val, low_reg_val; in ad2s1210_get_lot_low_threshold() local
687 ret = regmap_read(st->regmap, AD2S1210_REG_LOT_LOW_THRD, &low_reg_val); in ad2s1210_get_lot_low_threshold()
693 *val2 = (high_reg_val - low_reg_val) * in ad2s1210_get_lot_low_threshold()