From patchwork Thu Mar 24 12:15:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 64340 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp599067lbc; Thu, 24 Mar 2016 05:15:57 -0700 (PDT) X-Received: by 10.98.14.207 with SMTP id 76mr12243762pfo.1.1458821757404; Thu, 24 Mar 2016 05:15:57 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u22si11868879pfa.245.2016.03.24.05.15.57; Thu, 24 Mar 2016 05:15:57 -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=neutral (body hash did not verify) header.i=@linaro.org; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751421AbcCXMPx (ORCPT + 4 others); Thu, 24 Mar 2016 08:15:53 -0400 Received: from mail-lb0-f171.google.com ([209.85.217.171]:33518 "EHLO mail-lb0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750972AbcCXMPw (ORCPT ); Thu, 24 Mar 2016 08:15:52 -0400 Received: by mail-lb0-f171.google.com with SMTP id oe12so28983176lbc.0 for ; Thu, 24 Mar 2016 05:15:51 -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=RuzF/YpzsHBBRlInCg5FJ27DQxQNlNOJWrm9J3bvAfY=; b=kLO63qi8cJ93Lz/JynW7oaA8bUYh6c/qWWH+jOhZN/+qGb02qrkZuXJM7wAlzZq3hM zzhqoG7+u30unKow/HZHF7jAw+My2BG7J2nG8jLrC+djSQLUzDwA9RT7QnpZ6InvI2yn 5t+iO4JtUfW1mr4vhM6w9lZwJe/jJzhuMulLU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=RuzF/YpzsHBBRlInCg5FJ27DQxQNlNOJWrm9J3bvAfY=; b=GUcpNX3/Cq4ATjYmabLgK4gqhcxDt3ZfnpBwllq1K2yXzx9ZHCimt3lBRSgqd/UqVR ruw/JI4mbgUGAJdPFCCZjrGaZUfDecTs17OA9kBGKP+LBDsp0CicZw31wARi47ipLXRN N1bgyQjWGe/Z57BwfvJb2KH32nuCvjqecs/Kd0e/FmFeka42HgxlPwYOZmyb4io+ifbD XxP1GnbysNwkxMvwYBsUNxm5wTZdykuzX+aQEEkMiHNqAUFHvFU5r66mY6DMFyBbZuJC xIbwgSMFak6JCEzrM13rDoV6WqfKTs20JK4Eeq/lYdbhCC2BsO/9GC7Ut+LvmOEAwB1L L4AA== X-Gm-Message-State: AD7BkJL/SxZHIB7/S9LgVmrkBROejtC7UW3tAPeey7SLdVNCBZ85+J9lgIjfzR7PrTHNBZkm X-Received: by 10.112.139.1 with SMTP id qu1mr2354204lbb.143.1458821750465; Thu, 24 Mar 2016 05:15:50 -0700 (PDT) Received: from localhost.localdomain ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id h192sm1148923lfb.45.2016.03.24.05.15.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Mar 2016 05:15:49 -0700 (PDT) From: Linus Walleij To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: linux-gpio@vger.kernel.org, Linus Walleij Subject: [PATCH] pinctrl: nomadik: fix pull debug print inversion Date: Thu, 24 Mar 2016 13:15:45 +0100 Message-Id: <1458821745-10767-1-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 2.4.3 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Pull up was reported as pull down and vice versa. Fix this. Fixes: 8f1774a2a971 "pinctrl: nomadik: improve GPIO debug prints" Signed-off-by: Linus Walleij --- drivers/pinctrl/nomadik/pinctrl-nomadik.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.4.3 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/pinctrl/nomadik/pinctrl-nomadik.c b/drivers/pinctrl/nomadik/pinctrl-nomadik.c index 352406108fa0..c8969dd49449 100644 --- a/drivers/pinctrl/nomadik/pinctrl-nomadik.c +++ b/drivers/pinctrl/nomadik/pinctrl-nomadik.c @@ -990,7 +990,7 @@ static void nmk_gpio_dbg_show_one(struct seq_file *s, int val; if (pull) - pullidx = data_out ? 1 : 2; + pullidx = data_out ? 2 : 1; seq_printf(s, " gpio-%-3d (%-20.20s) in %s %s", gpio,