diff options
| author | Nadav Amit <[email protected]> | 2018-06-04 06:58:14 -0700 |
|---|---|---|
| committer | Linus Walleij <[email protected]> | 2018-06-18 07:55:30 +0200 |
| commit | 7279d9917560bbd0d82813d6bf00490a82c06783 (patch) | |
| tree | 2b09b42b48cc36d169fcde66720240478c559d54 /tools/perf/scripts/python/sctop.py | |
| parent | ce397d215ccd07b8ae3f71db689aedb85d56ab40 (diff) | |
gpio: Fix wrong rounding in gpio-menz127
men_z127_debounce() tries to round up and down, but uses functions which
are only suitable when the divider is a power of two, which is not the
case. Use the appropriate ones.
Found by static check. Compile tested.
Fixes: f436bc2726c64 ("gpio: add driver for MEN 16Z127 GPIO controller")
Signed-off-by: Nadav Amit <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions