summaryrefslogtreecommitdiff
path: root/kernel/workqueue.c
diff options
context:
space:
mode:
authorChuang Zhu <git@chuang.cz>2026-03-16 02:23:04 +0800
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2026-03-21 19:44:15 +0000
commit733bcf18eab0cbcea7b1a85c967dc100945fffc3 (patch)
tree3d7927b242a17926885f370e8b424f1a04ea5d46 /kernel/workqueue.c
parent54dde4b1ed85a60ce1bcd10cc6783b9a33ea78e3 (diff)
iio: adc: ina2xx: add INA236 support
The calibration divisor is not directly specified in the datasheet, but can be calculated: I = Current_LSB * Current Current = ShuntVoltage * CAL / calibration_divisor CAL = 0.00512 / (Current_LSB * Rshunt) ShuntVoltage = Vshunt / ShuntVoltage_LSB => I = (0.00512 / (calibration_divisor*ShuntVoltage_LSB)) * (Vshunt / Rshunt) Ohm's law, I = Vshunt / Rshunt => 0.00512 / (calibration_divisor*ShuntVoltage_LSB) = 1 ShuntVoltage_LSB = 2.5 uV = 0.0000025 V => calibration_divisor = 2048 Signed-off-by: Chuang Zhu <git@chuang.cz> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'kernel/workqueue.c')
0 files changed, 0 insertions, 0 deletions