Lines Matching +full:current +full:- +full:sense
1 // SPDX-License-Identifier: GPL-2.0-or-later
14 #include <linux/hwmon-sysfs.h>
58 * 300 uV resolution. Convert to current as measured with in ltc4260_get_value()
59 * an 1 mOhm sense resistor, in mA. If a different sense in ltc4260_get_value()
60 * resistor is installed, calculate the actual current by in ltc4260_get_value()
61 * dividing the reported current by the sense resistor value in ltc4260_get_value()
67 return -EINVAL; in ltc4260_get_value()
79 value = ltc4260_get_value(dev, attr->index); in ltc4260_value_show()
97 fault &= attr->index; in ltc4260_bool_show()
99 regmap_update_bits(regmap, LTC4260_FAULT, attr->index, 0); in ltc4260_bool_show()
118 /* Current (via sense resistor) */
146 struct device *dev = &client->dev; in ltc4260_probe()
159 hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, in ltc4260_probe()
182 MODULE_AUTHOR("Guenter Roeck <linux@roeck-us.net>");