From patchwork Sun May 9 23:38:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 432883 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp2366989jao; Sun, 9 May 2021 16:38:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywo3PQhu+L0W8UuxoJnFSZHmgDRveWRnU2IsNQYkKU9FxR6CafLhSKDrl3vT3LzJaC7FO2 X-Received: by 2002:a05:6602:c:: with SMTP id b12mr16000522ioa.74.1620603518730; Sun, 09 May 2021 16:38:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620603518; cv=none; d=google.com; s=arc-20160816; b=yDCKWqYXN55OJFxjV6QyszGjgY3Eb8wdyU3zXUDDZC4cAuWjDZgH1HbyWtlxPGKFIH 5OM4Uwbx4cZKCBsue6SeXUUIgwHRwjomILiVUAHjxstg540PJKMF8kaxrbF33W5XNX7V CxF2TNNsCQGO8gvIzHXG0Sf7O8JiILJbojj1dNh2W/R0MkhEJiffTRS92pAr9pz0wq8p b7MNqNlrp/HG4Eu0doNJ0Cv7IVaOnH8Kqgh6HG1/mfKCdkx5+6h7+BomVBUyDZpTNzjo T9CwWMDmXFAGQ/cTFt5ypuJAeMMKoS3AjETDVbWQNpbxR/u0W4Tlnpp6bgx3Pug3sLQZ qbvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=DsYVHmDLDBWBajPAxy8Ub0s7nvbeZln5fO+9XAQ5QhM=; b=AkO+rX/4zymCGd53lIsBRpWvr6BVlqW7hoA3ZY+G1iJ740nlcl9RZMKcNPFKqa+Q9l iDRU2kv2Y5kKCIIJqEDiwZ/MjS2xV792/gnqjPATz4b1QQb5c8rFTd0yBmamy13WPESV jXgKhJGsfJaQ1HFuG6MLXO8vygM1KQmMKpw2/gOZnQvw6zutgRUDEMUHjtHurIYn07Ul t81jLru7Xg5JL62GxcYvhGaQim2sJu4DV23pGCMmexc5ZClfKswXmCMAUJJ/AD9+eAfW KtgOKK6/5su0nX6OEBI2U1MDQdpJknMGbbLdffeD3v5hW4zXeni/aCdPWtJ/HlzfpWsq kapQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=K2fTeSrs; spf=pass (google.com: domain of linux-input-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-input-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d6si16943286ilv.73.2021.05.09.16.38.38; Sun, 09 May 2021 16:38:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-input-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=K2fTeSrs; spf=pass (google.com: domain of linux-input-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-input-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229853AbhEIXjl (ORCPT + 1 other); Sun, 9 May 2021 19:39:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230019AbhEIXjj (ORCPT ); Sun, 9 May 2021 19:39:39 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49D6FC061573 for ; Sun, 9 May 2021 16:38:35 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id 7so200157lfp.9 for ; Sun, 09 May 2021 16:38:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=DsYVHmDLDBWBajPAxy8Ub0s7nvbeZln5fO+9XAQ5QhM=; b=K2fTeSrsThRwtJP5dNwpo5cJBo1DxUt59lkTjtPOK+8IA2EYjcRkk+aBas7GFsTf2i n6ovksRcHpedyqkHf4FBKQk6Gu1PHolb2qWYZzjoXJhEtEdqMaufqpmY97hRzyhx13wp gcvY1ufTQ8APMDH8lre4JvlxQ5oMrkKNY+BtxRj/FJKzJnk3A+I0D/ZmHWuMTNIbWdv5 Ttb52f1UNsRlg9F0Fcyj5Af4/Z1h9zGG28RCvAn5GlhMGDiVsw3Soa9td01jqlZoSJhm G5JGOWsDFL2+XRVdZH26fWANjn51LxFoGP0vNCeFNwBvgxvBuowzIFmfyERdCAZPNGyn UYbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=DsYVHmDLDBWBajPAxy8Ub0s7nvbeZln5fO+9XAQ5QhM=; b=DtaBkvgNQxIObPXyeeHdsRGUL7vtRbCUsPI8E6TxcRv0A8k4HvSVdqZ7PTc0gSg3zy ZrGFiLSe6xJYyjbj1P0qaU1FCSi4zX2jexivHKt7k5IgYo0b4NeEVc86AYHPOIPUuiQm XTex+hqQkr9IGiIJviizb/+NlS6P9/SexA/cZh7cjsA6idcdP/SR86Z+ssenh4sRNkLs QcWQIk9cedhWOVSQnd7EZ7jL2Bvmnz01CVdDu8xKrR3+AdoNpp++n6n9aAZK0e05Y/IQ TVNLTHrvZiqFxtUVVOY5gwnhkRyfBynSb2I1ST/yFRlalsd8iarz2BaqGf2OrdBCD9Hs 4Okw== X-Gm-Message-State: AOAM530J8ZcRoMxud8mj6zqxb3sSO+mr4JlfWJqfMdcuh5MSxKb3u6MA QKWl0HsFDqeYHa6jjTWvY25BktPvZW8QKg== X-Received: by 2002:a05:6512:3481:: with SMTP id v1mr901374lfr.376.1620603513849; Sun, 09 May 2021 16:38:33 -0700 (PDT) Received: from localhost.localdomain (c-fdcc225c.014-348-6c756e10.bbcust.telenor.se. [92.34.204.253]) by smtp.gmail.com with ESMTPSA id m25sm2074826lfo.279.2021.05.09.16.38.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 May 2021 16:38:33 -0700 (PDT) From: Linus Walleij To: Dmitry Torokhov , linux-input@vger.kernel.org Cc: Linus Walleij Subject: [PATCH] Input: tsc200x: Drop hard-coded IRQ edge Date: Mon, 10 May 2021 01:38:30 +0200 Message-Id: <20210509233830.359134-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org This edge setting should come from the device tree not the driver. Also, most device trees sets this to the falling edge, which is contradictory to what is hardcoded. Signed-off-by: Linus Walleij --- drivers/input/touchscreen/tsc200x-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.30.2 diff --git a/drivers/input/touchscreen/tsc200x-core.c b/drivers/input/touchscreen/tsc200x-core.c index ce2fe30d6b8a..5f0ce663a2dc 100644 --- a/drivers/input/touchscreen/tsc200x-core.c +++ b/drivers/input/touchscreen/tsc200x-core.c @@ -540,7 +540,7 @@ int tsc200x_probe(struct device *dev, int irq, const struct input_id *tsc_id, error = devm_request_threaded_irq(dev, irq, NULL, tsc200x_irq_thread, - IRQF_TRIGGER_RISING | IRQF_ONESHOT, + IRQF_ONESHOT, "tsc200x", ts); if (error) { dev_err(dev, "Failed to request irq, err: %d\n", error);