From patchwork Tue Oct 2 13:23:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 147977 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp5149865lji; Tue, 2 Oct 2018 06:23:31 -0700 (PDT) X-Google-Smtp-Source: ACcGV62m3U6tHOG7aWb7E/hw5rcBBwW1KETVXes/EJuFaxTXEYFOPmU3gRw2Rvcyv9c4+VLiPxRT X-Received: by 2002:a63:c746:: with SMTP id v6-v6mr9013130pgg.108.1538486611012; Tue, 02 Oct 2018 06:23:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538486611; cv=none; d=google.com; s=arc-20160816; b=JbJLwO3ZPpEw09XiE4XZ4QaUDh28fnwPoQjZqow/ikkvpNlpHAiBvRFW3m1sQI6vVq ejG3ClOFMWoRQ49dHgdL2T+rGj1+vjNIthFai5x0im3TfBMa3Hd/c208tztm72JA723R ONCnbYnRx0ndhwnypaPLuS+pXYr7X50bE4Z7XBMLcMGhxQ03Pj15/m8ifuqtPNDOmqJc JC7mlLxlV+lWICfstAMU/iIlkJJh4koSzCOsrgOr0CbdGdpKUrA3q6eNyA0tjxqaEuG4 7Iem4DwnODobpHXz1VwhicGSM1aN4qkO+sb/MZznay4cnVpxXubTgUATpKfZOHkroqZZ kqOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=dfcTKrPSAhFJLC87rcrvWZas3L61MRq1Q/auHLVQZF4=; b=owMhWEAY3u47L4WF0BmTOmPofKohNxGhY8x6eupRafyt+ajgX7ePg1kw/HvXgLtruy mz5oKFCO5d3LsgXyj0J/MPqDw7RAdrqfpKqWK+m/kOSZEttz5JnujwXRXPoVseMrpOPh haUpT/iSekYVn5N8LJnLWJI6lYISXrZjMbo7ERr/D1aNOHLLXEFx6sdhIp7DfsGVE619 QE15/xUl67wJXOljvYVfiU19YoJrZqHvr4J4snVTVnygu9Nr0/h9hndak0UMXI4FGD9L Ckdh1B4pLTS58RBwkFC/ydFAkae9IUpPb6VyqIlN9Xg8UYBI1gBjeeTditsFcHssoxD2 PZZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ISS+z2z9; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-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. [209.132.180.67]) by mx.google.com with ESMTP id 44-v6si16800302plc.409.2018.10.02.06.23.30; Tue, 02 Oct 2018 06:23:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-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=@linaro.org header.s=google header.b=ISS+z2z9; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-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 S1727340AbeJBUGu (ORCPT + 5 others); Tue, 2 Oct 2018 16:06:50 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:35134 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726724AbeJBUGt (ORCPT ); Tue, 2 Oct 2018 16:06:49 -0400 Received: by mail-lf1-f66.google.com with SMTP id r191-v6so1402034lff.2 for ; Tue, 02 Oct 2018 06:23:28 -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; bh=dfcTKrPSAhFJLC87rcrvWZas3L61MRq1Q/auHLVQZF4=; b=ISS+z2z9KaexPM3nFnJ4V9bbJLFkkUVY7tf4Rz5Pk4cnPMiDiq4XTK1PIPHRdntwpL 4CTxvP3FBf+lEMcHMY/ULGozmt4Ug2q9SbRjK0jCw/m6JKQzskzFiZ6yhTrQyeYrOk9N fTAhBeLhdywTbVYXAYoiwNmSH8N9wDCt7SlaI= 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; bh=dfcTKrPSAhFJLC87rcrvWZas3L61MRq1Q/auHLVQZF4=; b=jff0/ES4NqIf8wpcNV2luuiKq7T708PB3W0BXMvUBLCye5V6s+m4YkiLMqyhFKZdEs Yt/nLuXv6GfoFaqTZL1VnWWNpDLvESyoK64QggBDptBk0PWhIneJleo+steBuPLvJbBx ZWfKWegrtl+jY6Y9ulXJOO8TN2+m728BxxjJYAQJJ3RytR2nTud5e1kmrw1UgJQQ7Gza xZTg+XHSu8CDq1wrG9UkiD4+weUO4PDbfySkbkb1UnJsd5HoaX/f+hb74gQhHt6ykwQr pjavu9fFw4vFWcn3jkdu6dQeVu6btb8sSnydSYQ+ds/1i5dTfK/Xki9JmzGaHM6+U5QS B4Xw== X-Gm-Message-State: ABuFfoiDn92Z4lDoCo4AcPViiPaGLVIItTZ8e4sRUmUvjVoHdIXfwQrO 39QAV9ha9EozFAWyDM72c5cRgMD9Btk= X-Received: by 2002:a19:a3d1:: with SMTP id m200-v6mr7867750lfe.38.1538486607804; Tue, 02 Oct 2018 06:23:27 -0700 (PDT) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id t27-v6sm3168046lft.92.2018.10.02.06.23.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 02 Oct 2018 06:23:26 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org Cc: Linus Walleij Subject: [PATCH] pinctrl: nomadik: Fix debugfs Date: Tue, 2 Oct 2018 15:23:24 +0200 Message-Id: <20181002132324.24231-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org The .to_irq() function obviously takes the per-chip offset as parameter, not the global GPIO number. Signed-off-by: Linus Walleij --- drivers/pinctrl/nomadik/pinctrl-nomadik.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/pinctrl/nomadik/pinctrl-nomadik.c b/drivers/pinctrl/nomadik/pinctrl-nomadik.c index cf1a20d1dce8..4cc2c47f8778 100644 --- a/drivers/pinctrl/nomadik/pinctrl-nomadik.c +++ b/drivers/pinctrl/nomadik/pinctrl-nomadik.c @@ -971,7 +971,7 @@ static void nmk_gpio_dbg_show_one(struct seq_file *s, data_out ? "hi" : "lo", (mode < 0) ? "unknown" : modes[mode]); } else { - int irq = chip->to_irq(chip, gpio); + int irq = chip->to_irq(chip, offset); struct irq_desc *desc = irq_to_desc(irq); int pullidx = 0; int val;