Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3739675ybl; Sun, 8 Dec 2019 22:28:14 -0800 (PST) X-Google-Smtp-Source: APXvYqyPIjijTD4nS6ZcTWgzmITey32rQHRETGIu3jcC1VhIgH2NPB74859W7fDoCUYXq3OymQcS X-Received: by 2002:a9d:191f:: with SMTP id j31mr19583115ota.163.1575872894873; Sun, 08 Dec 2019 22:28:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575872894; cv=none; d=google.com; s=arc-20160816; b=obXjOISxauc/oEvpBIIIpfuxh2UzTRFJoNaeL7pLr0ZrfeerGNjgq8L9nuL/kC3Eqo TW0+6/aWI4I4P0bMKotewnJw0he9XRRIgy3CO++SzzeNEGMV5Y2Bd8RKa1ar/Ij74D3C /Hx36iS/5mP8FiMebCC6s4Ewtg0hIe5hvz4QTV1k4Tqy2zCCef+UNQrOg9woEjO4hSR2 O3tr89DoNPBiORtwVqIYCHgJefl2woTp5uVzOK5H6olnxXCnFd9sZSVPr8Ng+M0Y+UW4 7wbT4uS0AwP28aBQzAP/W2L/Kn2z/N6vXoniNtOt+4I5eBpV3K30AXZicgkXzEH1Lqw8 l1OA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=7hvhhN/6YoaOIPBhtvUMCaNZZpkzI6k17aeCBBhi1eM=; b=dE5Vn+yWETPyVcspKeM9c767AfdwIf0ZnmBkE8UxyvBQfgV+VFWTB4yKbJOEKWaYLk 1hmSRS0WvnImbeZgkOp8dr7i1QS70vb87P42IjJnMqm7krarUsInSM+l/KOiiMUHtZeA ClUkODy7/+R442n/s+TLK8rwg0t6Me7MzFgKNenOpSBicI/tzYSmZ9dgB/04CC7+kGlt 653VPXbHyiHxfghWXiR9j39ivssWgqBH99FddAz9VGzc/mbIx8jaqP98pAHWMDmtujIL SsA/BMZcz0l7TJl940dJ52Wuv2rf0EP0BGzRjNUP5tKpL5lH2O6FDiLbpNs1LnGa9PWD oPew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ax4rUGAK; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m85si11425483oig.158.2019.12.08.22.28.03; Sun, 08 Dec 2019 22:28:14 -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=@ti.com header.s=ti-com-17Q1 header.b=ax4rUGAK; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727113AbfLIG1b (ORCPT + 99 others); Mon, 9 Dec 2019 01:27:31 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:58076 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727010AbfLIG1a (ORCPT ); Mon, 9 Dec 2019 01:27:30 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id xB96RSuW040218; Mon, 9 Dec 2019 00:27:28 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1575872848; bh=7hvhhN/6YoaOIPBhtvUMCaNZZpkzI6k17aeCBBhi1eM=; h=From:To:CC:Subject:Date; b=ax4rUGAKP5K+2xiPQAjAcd3sycahAD+ZHe1nyic9+82PCNwZiDtlYrVLiXU49vSEM Ohbd0Xmik3QPQLHM0oVtKLd7udQ7fXfdUS+RWOvYltVlJL00kp6bE4oFhd+lViQXTC +UBHdYPnCTPH4rZXC3HqeSZ5ML9UfCYnH8ZWCc8A= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id xB96RSJn064117 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 9 Dec 2019 00:27:28 -0600 Received: from DFLE114.ent.ti.com (10.64.6.35) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Mon, 9 Dec 2019 00:27:28 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Mon, 9 Dec 2019 00:27:28 -0600 Received: from a0132425.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id xB96RQMf043836; Mon, 9 Dec 2019 00:27:26 -0600 From: Vignesh Raghavendra To: Linus Walleij , Bartosz Golaszewski CC: , , Vignesh Raghavendra , Grygorii Strashko Subject: [PATCH v2] gpio: pca953x: Don't hardcode irq trigger type Date: Mon, 9 Dec 2019 11:57:49 +0530 Message-ID: <20191209062749.26429-1-vigneshr@ti.com> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Don't hardcode irq trigger to IRQF_TRIGGER_LOW while registering IRQ handler. IRQ/platform core will take care of setting appropriate trigger type. Signed-off-by: Vignesh Raghavendra --- v2: Drop explicit call to irq_get_trigger_type() as this is take care of in core code. drivers/gpio/gpio-pca953x.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpio/gpio-pca953x.c b/drivers/gpio/gpio-pca953x.c index 6652bee01966..40e48f7d83bb 100644 --- a/drivers/gpio/gpio-pca953x.c +++ b/drivers/gpio/gpio-pca953x.c @@ -770,8 +770,7 @@ static int pca953x_irq_setup(struct pca953x_chip *chip, int irq_base) ret = devm_request_threaded_irq(&client->dev, client->irq, NULL, pca953x_irq_handler, - IRQF_TRIGGER_LOW | IRQF_ONESHOT | - IRQF_SHARED, + IRQF_ONESHOT | IRQF_SHARED, dev_name(&client->dev), chip); if (ret) { dev_err(&client->dev, "failed to request irq %d\n", -- 2.24.0