Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit de6ccdbd authored by Nadav Amit's avatar Nadav Amit Committed by Greg Kroah-Hartman
Browse files

gpio: Fix wrong rounding in gpio-menz127



[ Upstream commit 7279d991 ]

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>
Signed-off-by: default avatarSasha Levin <alexander.levin@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5bcbbadf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment