Searched refs:reg_cr1_val (Results 1 – 1 of 1) sorted by relevance
107 u8 reg_cr0_val, reg_cr1_val; in max31856_init() local123 ret = max31856_read(data, MAX31856_CR1_REG, ®_cr1_val, 1); in max31856_init()127 reg_cr1_val &= ~MAX31856_TC_TYPE_MASK; in max31856_init()128 reg_cr1_val |= data->thermocouple_type; in max31856_init()130 reg_cr1_val &= ~MAX31856_AVERAGING_MASK; in max31856_init()131 reg_cr1_val |= data->averaging << MAX31856_AVERAGING_SHIFT; in max31856_init()133 ret = max31856_write(data, MAX31856_CR1_REG, reg_cr1_val); in max31856_init()