From patchwork Mon Nov 7 14:40:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 9415327 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D7D8E6022E for ; Mon, 7 Nov 2016 14:40:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C99D0285E4 for ; Mon, 7 Nov 2016 14:40:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BC9B7288F8; Mon, 7 Nov 2016 14:40:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 55732285E4 for ; Mon, 7 Nov 2016 14:40:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753150AbcKGOki (ORCPT ); Mon, 7 Nov 2016 09:40:38 -0500 Received: from up.free-electrons.com ([163.172.77.33]:49176 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751297AbcKGOkh (ORCPT ); Mon, 7 Nov 2016 09:40:37 -0500 Received: by mail.free-electrons.com (Postfix, from userid 110) id 29E4720D80; Mon, 7 Nov 2016 15:40:36 +0100 (CET) Received: from localhost (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.free-electrons.com (Postfix) with ESMTPSA id EDDD82078A; Mon, 7 Nov 2016 15:40:25 +0100 (CET) From: Maxime Ripard To: Dmitry Torokhov Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Maxime Ripard Subject: [PATCH] drivers: tca8418: Change the interrupt type Date: Mon, 7 Nov 2016 15:40:24 +0100 Message-Id: <20161107144024.15291-1-maxime.ripard@free-electrons.com> X-Mailer: git-send-email 2.10.1 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The TCA8418 interrupt has a level trigger, not a edge one. Signed-off-by: Maxime Ripard --- drivers/input/keyboard/tca8418_keypad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/keyboard/tca8418_keypad.c b/drivers/input/keyboard/tca8418_keypad.c index 9002298698fc..b88b3696a2e1 100644 --- a/drivers/input/keyboard/tca8418_keypad.c +++ b/drivers/input/keyboard/tca8418_keypad.c @@ -360,7 +360,7 @@ static int tca8418_keypad_probe(struct i2c_client *client, irq = gpio_to_irq(irq); error = devm_request_threaded_irq(dev, irq, NULL, tca8418_irq_handler, - IRQF_TRIGGER_FALLING | + IRQF_TRIGGER_LOW | IRQF_SHARED | IRQF_ONESHOT, client->name, keypad_data);