[lkml]   [2018]   [Jun]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] gpio: Fix wrong rounding in gpio-menz127
On Mon, Jun 4, 2018 at 3:58 PM, Nadav Amit <> wrote:

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

Applied as a non-critical fix as I have not error reports.

Linus Walleij

 \ /
  Last update: 2018-06-12 10:41    [W:0.037 / U:1.380 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site