Lines Matching defs:thermo
503 struct ltc2983_thermocouple *thermo = to_thermocouple(sensor);
506 chan_val = LTC2983_CHAN_ASSIGN(thermo->cold_junction_chan);
507 chan_val |= LTC2983_THERMOCOUPLE_CFG(thermo->sensor_config);
509 if (thermo->custom) {
512 ret = __ltc2983_chan_custom_sensor_assign(st, thermo->custom,
605 struct ltc2983_thermocouple *thermo;
610 thermo = devm_kzalloc(&st->spi->dev, sizeof(*thermo), GFP_KERNEL);
611 if (!thermo)
615 thermo->sensor_config = LTC2983_THERMOCOUPLE_SGL(1);
622 thermo->sensor_config |=
626 thermo->sensor_config |=
630 thermo->sensor_config |=
634 thermo->sensor_config |=
643 thermo->sensor_config |= LTC2983_THERMOCOUPLE_OC_CHECK(1);
646 if (!(thermo->sensor_config & LTC2983_THERMOCOUPLE_DIFF_MASK) &&
659 &thermo->cold_junction_chan);
675 thermo->custom = __ltc2983_custom_sensor_new(st, child,
678 if (IS_ERR(thermo->custom)) {
680 return ERR_CAST(thermo->custom);
685 thermo->sensor.fault_handler = ltc2983_thermocouple_fault_handler;
686 thermo->sensor.assign_chan = ltc2983_thermocouple_assign_chan;
689 return &thermo->sensor;