Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp4479621ybx; Mon, 4 Nov 2019 14:07:12 -0800 (PST) X-Google-Smtp-Source: APXvYqywSkCwGjQp2W17T5/FHJsb+pFALx7FMYUzUP2IrPR1SO0s70w7+CAanaiHzadrIC5KU8qa X-Received: by 2002:a50:ef17:: with SMTP id m23mr11687360eds.81.1572905232717; Mon, 04 Nov 2019 14:07:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572905232; cv=none; d=google.com; s=arc-20160816; b=SYKpEwL3JhWRZcSDkcMtE1+xTADhxOZ1i75ApRCUSmg98xLDEatUJyHL/uxhU6+JLy RTGeWLe+H8BeCGrNrUoPc6NoZQX0GB/n3QqpDT6/f39DYbK1MBadLjGeRjtzLY443Znm CgsKXLY3E96gjyrdV5xXT1eVH9Y9Ebkc7rufknLsXD7nM4KIsQL7pwpESfpXcnWpC5v5 l5UR731JG5JkNLYQZAYGsGaLdiaKDe7KdXnlSuoCB/lGejluSfCCnle6OXpCz2CGGGEI q53Hq5c+DCNTPUXZzndu21gvh6sjrCZrH8xUob+UEmqEnHfGMa+32DTWMDosO1+uK9ka F5nA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Sq5lVE/P38idreV4Ve4JEJFMUIRddVYYqvV9mcLM9UY=; b=y8gChyPbRaC1DhhDbikirYcOViZQmhBlusbsYHsYyIbsN/klWinD0RVAAQhaPsEIPh FMDYP+5pP30W3jSqI/Az27Gum/gFjUdvdSPlOpelu/vA5vL5rK1ZFjc65j2QxS0RVIo5 R89f1E4RWmJEj08CPZpNXy/d4+urZ6mMAx7D2YJ8rUbKY7Rs1iXTUWVNg9w/12/nNNBI LxgEZI0QlflmqdPU4RQlSzu91oIe+FMPnXV0ffNCreHoANikCYR+zf/dXGZ5LtYwO46r zoEAkcVs0lSRD8dOF0cSu8kEEfNZbQ1A/CloW6qIVVaTFzy+tw5ObewcPAMcI6VFb5Wv DOdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hjSjrtvC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m16si13213539ejd.306.2019.11.04.14.06.49; Mon, 04 Nov 2019 14:07:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hjSjrtvC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389869AbfKDWFv (ORCPT + 99 others); Mon, 4 Nov 2019 17:05:51 -0500 Received: from mail.kernel.org ([198.145.29.99]:37302 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388286AbfKDWFq (ORCPT ); Mon, 4 Nov 2019 17:05:46 -0500 Received: from localhost (6.204-14-84.ripe.coltfrance.com [84.14.204.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 96DCF205C9; Mon, 4 Nov 2019 22:05:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1572905146; bh=/TiINZmJsoedbiu+tJ48La03mc4J9pQ/MseuO/2nh5w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hjSjrtvCExkIGII6glN6AX8sMr+MNmwF8Rvu2/gp6WemaaGHWmXPA2PwE1hPLDDTY OFasr45yqpyvD9OdUVyk8T3WIh7q4vjXqH5FnBDFBz+cOX4YqOFwmsA3WgV4FMVaxw geCmNNy89fhgUBaJcg/vi/hhTKnflCK1hodRzxzE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Thierry Reding , Linus Walleij , Sasha Levin Subject: [PATCH 5.3 043/163] gpio: max77620: Use correct unit for debounce times Date: Mon, 4 Nov 2019 22:43:53 +0100 Message-Id: <20191104212143.370815953@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191104212140.046021995@linuxfoundation.org> References: <20191104212140.046021995@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Thierry Reding [ Upstream commit fffa6af94894126994a7600c6f6f09b892e89fa9 ] The gpiod_set_debounce() function takes the debounce time in microseconds. Adjust the switch/case values in the MAX77620 GPIO to use the correct unit. Signed-off-by: Thierry Reding Link: https://lore.kernel.org/r/20191002122825.3948322-1-thierry.reding@gmail.com Signed-off-by: Linus Walleij Signed-off-by: Sasha Levin --- drivers/gpio/gpio-max77620.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-max77620.c b/drivers/gpio/gpio-max77620.c index b7d89e30131e2..06e8caaafa811 100644 --- a/drivers/gpio/gpio-max77620.c +++ b/drivers/gpio/gpio-max77620.c @@ -192,13 +192,13 @@ static int max77620_gpio_set_debounce(struct max77620_gpio *mgpio, case 0: val = MAX77620_CNFG_GPIO_DBNC_None; break; - case 1 ... 8: + case 1000 ... 8000: val = MAX77620_CNFG_GPIO_DBNC_8ms; break; - case 9 ... 16: + case 9000 ... 16000: val = MAX77620_CNFG_GPIO_DBNC_16ms; break; - case 17 ... 32: + case 17000 ... 32000: val = MAX77620_CNFG_GPIO_DBNC_32ms; break; default: -- 2.20.1