Lines Matching defs:thermistor
112 /* cold junction for thermocouples and rsense for rtd's and thermistor's */
545 struct ltc2983_thermistor *thermistor = to_thermistor(sensor);
548 chan_val = LTC2983_CHAN_ASSIGN(thermistor->r_sense_chan);
549 chan_val |= LTC2983_THERMISTOR_CFG(thermistor->sensor_config);
551 LTC2983_THERMISTOR_EXC_CURRENT(thermistor->excitation_current);
553 if (thermistor->custom) {
557 thermistor->custom,
869 struct ltc2983_thermistor *thermistor;
875 thermistor = devm_kzalloc(dev, sizeof(*thermistor), GFP_KERNEL);
876 if (!thermistor)
885 ret = of_property_read_u32(phandle, "reg", &thermistor->r_sense_chan);
892 thermistor->sensor_config = LTC2983_THERMISTOR_SGL(1);
896 thermistor->sensor_config =
899 thermistor->sensor_config =
903 if (!(thermistor->sensor_config & LTC2983_THERMISTOR_DIFF_MASK) &&
906 "Invalid chann:%d for differential thermistor",
921 propname = "adi,custom-thermistor";
924 thermistor->custom = __ltc2983_custom_sensor_new(st, child,
928 if (IS_ERR(thermistor->custom)) {
930 return ERR_CAST(thermistor->custom);
934 thermistor->sensor.fault_handler = ltc2983_common_fault_handler;
935 thermistor->sensor.assign_chan = ltc2983_thermistor_assign_chan;
943 thermistor->excitation_current = 0x03;
946 thermistor->excitation_current = 0x0c;
958 thermistor->excitation_current = 0x0c;
961 thermistor->excitation_current = 0x01;
964 thermistor->excitation_current = 0x02;
967 thermistor->excitation_current = 0x03;
970 thermistor->excitation_current = 0x04;
973 thermistor->excitation_current = 0x05;
976 thermistor->excitation_current = 0x06;
979 thermistor->excitation_current = 0x07;
982 thermistor->excitation_current = 0x08;
985 thermistor->excitation_current = 0x09;
988 thermistor->excitation_current = 0x0a;
991 thermistor->excitation_current = 0x0b;
1003 return &thermistor->sensor;
1035 "Invalid chann:%d for differential thermistor",