Lines Matching defs:thermo
541 struct ltc2983_thermocouple *thermo = to_thermocouple(sensor);
544 chan_val = LTC2983_CHAN_ASSIGN(thermo->cold_junction_chan);
545 chan_val |= LTC2983_THERMOCOUPLE_CFG(thermo->sensor_config);
547 if (thermo->custom) {
550 ret = __ltc2983_chan_custom_sensor_assign(st, thermo->custom,
658 struct ltc2983_thermocouple *thermo;
663 thermo = devm_kzalloc(&st->spi->dev, sizeof(*thermo), GFP_KERNEL);
664 if (!thermo)
668 thermo->sensor_config = LTC2983_THERMOCOUPLE_SGL(1);
674 thermo->sensor_config |=
678 thermo->sensor_config |=
682 thermo->sensor_config |=
686 thermo->sensor_config |=
695 thermo->sensor_config |= LTC2983_THERMOCOUPLE_OC_CHECK(1);
698 if (!(thermo->sensor_config & LTC2983_THERMOCOUPLE_DIFF_MASK) &&
710 ret = fwnode_property_read_u32(ref, "reg", &thermo->cold_junction_chan);
725 thermo->custom = __ltc2983_custom_sensor_new(st, child,
728 if (IS_ERR(thermo->custom)) {
729 ret = PTR_ERR(thermo->custom);
735 thermo->sensor.fault_handler = ltc2983_thermocouple_fault_handler;
736 thermo->sensor.assign_chan = ltc2983_thermocouple_assign_chan;
739 return &thermo->sensor;