diff options
author | Antoniu Miclaus <antoniu.miclaus@analog.com> | 2023-10-11 16:57:53 +0300 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2023-10-28 19:21:36 +0300 |
commit | 10b02902048737f376104bc69e5212466e65a542 (patch) | |
tree | 098ca631fb1edd1c4bc61ff066b710b5abbbd4b3 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | b92b2984a5b62099ab7731bc3a30a0d7c83a01d4 (diff) | |
download | linux-10b02902048737f376104bc69e5212466e65a542.tar.xz |
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: Antoniu Miclaus <antoniu.miclaus@analog.com>
Link: https://lore.kernel.org/r/20231011135754.13508-1-antoniu.miclaus@analog.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions