diff options
| author | Nadav Amit <namit@vmware.com> | 2018-06-04 06:58:14 -0700 |
|---|---|---|
| committer | Linus Walleij <linus.walleij@linaro.org> | 2018-06-18 07:55:30 +0200 |
| commit | 7279d9917560bbd0d82813d6bf00490a82c06783 (patch) | |
| tree | 2b09b42b48cc36d169fcde66720240478c559d54 /include/linux/platform_data | |
| parent | ce397d215ccd07b8ae3f71db689aedb85d56ab40 (diff) | |
| download | cachepc-linux-7279d9917560bbd0d82813d6bf00490a82c06783.tar.gz cachepc-linux-7279d9917560bbd0d82813d6bf00490a82c06783.zip | |
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 <namit@vmware.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/platform_data')
0 files changed, 0 insertions, 0 deletions
