Searched refs:shunt_resistor (Results 1 – 8 of 8) sorted by relevance
74 u32 shunt_resistor; member87 u32 shunt_resistor = data->shunt_resistor; in ltc2945_reg_to_val() local129 val = DIV_ROUND_CLOSEST_ULL(val, shunt_resistor); in ltc2945_reg_to_val()160 val = DIV_ROUND_CLOSEST_ULL(val, shunt_resistor); in ltc2945_reg_to_val()174 u32 shunt_resistor = data->shunt_resistor; in ltc2945_val_to_reg() local197 val *= shunt_resistor; in ltc2945_val_to_reg()203 val *= shunt_resistor; in ltc2945_val_to_reg()231 val *= shunt_resistor; in ltc2945_val_to_reg()495 &data->shunt_resistor)) in ltc2945_probe()496 data->shunt_resistor = 1000; in ltc2945_probe()[all …]
107 int shunt_resistor; member159 int i, shunt_resistor = 0; in ina3221_summation_shunt_resistor() local165 if (!shunt_resistor) { in ina3221_summation_shunt_resistor()167 shunt_resistor = input[i].shunt_resistor; in ina3221_summation_shunt_resistor()170 if (shunt_resistor != input[i].shunt_resistor) in ina3221_summation_shunt_resistor()175 return shunt_resistor; in ina3221_summation_shunt_resistor()344 resistance_uo = input[channel].shunt_resistor; in ina3221_read_curr()448 resistance_uo = input[channel].shunt_resistor; in ina3221_write_curr()707 return sysfs_emit(buf, "%d\n", input->shunt_resistor); in ina3221_shunt_show()727 input->shunt_resistor = val; in ina3221_shunt_store()[all …]
115 u32 shunt_resistor; member172 if (data->shunt_resistor == SHUNT_RESISTOR_DEFAULT) in tps23861_read_current()510 u32 shunt_resistor; in tps23861_probe() local525 if (!of_property_read_u32(dev->of_node, "shunt-resistor-micro-ohms", &shunt_resistor)) in tps23861_probe()526 data->shunt_resistor = shunt_resistor; in tps23861_probe()528 data->shunt_resistor = SHUNT_RESISTOR_DEFAULT; in tps23861_probe()530 if (data->shunt_resistor == SHUNT_RESISTOR_DEFAULT) in tps23861_probe()
870 static DEVICE_ATTR_RW(shunt_resistor);
105 compile-time or via the shunt_resistor attribute in sysfs at run-time. Please124 shunt_resistor Shunt resistance(uOhm) channel (not for ina260)158 - Configure `shunt_resistor` before configure `power1_crit`, because power159 value is calculated based on `shunt_resistor` set.
27 compile-time or via the shunt_resistor attribute in sysfs at run-time. Please
619 static IIO_DEVICE_ATTR_RW(shunt_resistor, 0);
378 in0_lcrit in1_lcrit_alarm shunt_resistor