Lines Matching defs:thermistor
127 /* cold junction for thermocouples and rsense for rtd's and thermistor's */
583 struct ltc2983_thermistor *thermistor = to_thermistor(sensor);
586 chan_val = LTC2983_CHAN_ASSIGN(thermistor->r_sense_chan);
587 chan_val |= LTC2983_THERMISTOR_CFG(thermistor->sensor_config);
589 LTC2983_THERMISTOR_EXC_CURRENT(thermistor->excitation_current);
591 if (thermistor->custom) {
595 thermistor->custom,
922 struct ltc2983_thermistor *thermistor;
928 thermistor = devm_kzalloc(dev, sizeof(*thermistor), GFP_KERNEL);
929 if (!thermistor)
938 ret = fwnode_property_read_u32(ref, "reg", &thermistor->r_sense_chan);
945 thermistor->sensor_config = LTC2983_THERMISTOR_SGL(1);
949 thermistor->sensor_config =
952 thermistor->sensor_config =
956 if (!(thermistor->sensor_config & LTC2983_THERMISTOR_DIFF_MASK) &&
959 "Invalid chann:%d for differential thermistor",
974 propname = "adi,custom-thermistor";
977 thermistor->custom = __ltc2983_custom_sensor_new(st, child,
981 if (IS_ERR(thermistor->custom)) {
982 ret = PTR_ERR(thermistor->custom);
987 thermistor->sensor.fault_handler = ltc2983_common_fault_handler;
988 thermistor->sensor.assign_chan = ltc2983_thermistor_assign_chan;
996 thermistor->excitation_current = 0x03;
999 thermistor->excitation_current = 0x0c;
1011 thermistor->excitation_current = 0x0c;
1014 thermistor->excitation_current = 0x01;
1017 thermistor->excitation_current = 0x02;
1020 thermistor->excitation_current = 0x03;
1023 thermistor->excitation_current = 0x04;
1026 thermistor->excitation_current = 0x05;
1029 thermistor->excitation_current = 0x06;
1032 thermistor->excitation_current = 0x07;
1035 thermistor->excitation_current = 0x08;
1038 thermistor->excitation_current = 0x09;
1041 thermistor->excitation_current = 0x0a;
1044 thermistor->excitation_current = 0x0b;
1056 return &thermistor->sensor;
1087 "Invalid chann:%d for differential thermistor",