Lines Matching +full:resistor +full:- +full:sense

1 // SPDX-License-Identifier: GPL-2.0-or-later
14 #include <linux/hwmon-sysfs.h>
96 * an 1mOhm sense resistor, similar to current in ltc2945_reg_to_val()
98 * Control register bit 0 selects if voltage at SENSE+/VDD in ltc2945_reg_to_val()
135 * an 1 mOhm sense resistor, in mA. If a different sense in ltc2945_reg_to_val()
136 * resistor is installed, calculate the actual current by in ltc2945_reg_to_val()
137 * dividing the reported current by the sense resistor value in ltc2945_reg_to_val()
143 return -EINVAL; in ltc2945_reg_to_val()
163 * with an 1mOhm sense resistor, similar to current in ltc2945_val_to_reg()
165 * Control register bit 0 selects if voltage at SENSE+/VDD in ltc2945_val_to_reg()
207 * an 1 mOhm sense resistor, in mA. If a different sense in ltc2945_val_to_reg()
208 * resistor is installed, calculate the actual current by in ltc2945_val_to_reg()
209 * dividing the reported current by the sense resistor value in ltc2945_val_to_reg()
215 return -EINVAL; in ltc2945_val_to_reg()
226 value = ltc2945_reg_to_val(dev, attr->index); in ltc2945_value_show()
238 u8 reg = attr->index; in ltc2945_value_store()
273 u8 reg = attr->index; in ltc2945_history_store()
284 return -EINVAL; in ltc2945_history_store()
309 return -EINVAL; in ltc2945_history_store()
332 fault &= attr->index; in ltc2945_bool_show()
334 regmap_update_bits(regmap, LTC2945_FAULT, attr->index, 0); in ltc2945_bool_show()
364 /* Currents (via sense resistor) */
450 struct device *dev = &client->dev; in ltc2945_probe()
463 hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, in ltc2945_probe()
486 MODULE_AUTHOR("Guenter Roeck <linux@roeck-us.net>");