Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: f436bc2 ("gpio: add driver for MEN 16Z127 GPIO controller") Signed-off-by: Nadav Amit <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
- Loading branch information