diff options
author | Nadav Amit <namit@vmware.com> | 2018-06-04 06:58:14 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-10-03 17:00:53 -0700 |
commit | de6ccdbd77345349b0134590a71dfcee5e4da791 (patch) | |
tree | 7313ecdf04de879fadd9072831d5c020943b3130 /fs/nfsd | |
parent | 5bcbbadf6ac54568019720be6d434bf7020fe3ed (diff) |
gpio: Fix wrong rounding in gpio-menz127
[ Upstream commit 7279d9917560bbd0d82813d6bf00490a82c06783 ]
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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/nfsd')
0 files changed, 0 insertions, 0 deletions