diff options
author | 2015-01-12 14:47:22 +0100 | |
---|---|---|
committer | 2015-01-25 21:23:59 -0800 | |
commit | b721fe2a3a92b896ba1b41e338471dfef672052a (patch) | |
tree | d982f8763a82b764cbe2d62308f7a6a11e4c73f3 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | hwmon: (ina2xx) remove an unnecessary dev_get_drvdata() result check (diff) | |
download | wireguard-linux-b721fe2a3a92b896ba1b41e338471dfef672052a.tar.xz wireguard-linux-b721fe2a3a92b896ba1b41e338471dfef672052a.zip |
hwmon: (ina2xx) use DIV_ROUND_CLOSEST() to avoid rounding errors
Use DIV_ROUND_CLOSEST() when dealing with the calibration values to make the
calculations less error prone.
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.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