Skip to content
Commit 7279d991 authored by Nadav Amit's avatar Nadav Amit Committed by Linus Walleij
Browse files

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: f436bc27

 ("gpio: add driver for MEN 16Z127 GPIO controller")
Signed-off-by: default avatarNadav Amit <namit@vmware.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent ce397d21
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment