Skip to content
Commit 10b02902 authored by Antoniu Miclaus's avatar Antoniu Miclaus Committed by Guenter Roeck
Browse files

hwmon: (ltc2992) Avoid division by zero



Do not allow setting shunt resistor to 0. This results in a division by
zero when performing current value computations based on input voltages
and connected resistor values.

Signed-off-by: default avatarAntoniu Miclaus <antoniu.miclaus@analog.com>
Link: https://lore.kernel.org/r/20231011135754.13508-1-antoniu.miclaus@analog.com


Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent b92b2984
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment