Lines Matching +full:current +full:- +full:sense
1 // SPDX-License-Identifier: GPL-2.0-or-later
15 #include <linux/hwmon-sysfs.h>
74 * 62.5 uV resolution. Convert to current as measured with in ltc4222_get_value()
75 * an 1 mOhm sense resistor, in mA. If a different sense in ltc4222_get_value()
76 * resistor is installed, calculate the actual current by in ltc4222_get_value()
77 * dividing the reported current by the sense resistor value in ltc4222_get_value()
83 return -EINVAL; in ltc4222_get_value()
94 value = ltc4222_get_value(dev, attr->index); in ltc4222_value_show()
108 ret = regmap_read(regmap, attr->nr, &fault); in ltc4222_bool_show()
111 fault &= attr->index; in ltc4222_bool_show()
113 regmap_update_bits(regmap, attr->nr, attr->index, 0); in ltc4222_bool_show()
143 /* Current (via sense resistor) */
182 struct device *dev = &client->dev; in ltc4222_probe()
196 hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, in ltc4222_probe()
219 MODULE_AUTHOR("Guenter Roeck <linux@roeck-us.net>");