From patchwork Wed Nov 22 20:04:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 119501 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp612298qgn; Wed, 22 Nov 2017 12:06:27 -0800 (PST) X-Google-Smtp-Source: AGs4zMYq8C53WyB3EV4+GR3uBE67pPjVgJprTR4PaAa5CRofVzIs66xHmydxOY1FynlnAj2gIeDJ X-Received: by 10.84.232.138 with SMTP id i10mr23392736plk.104.1511381186982; Wed, 22 Nov 2017 12:06:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511381186; cv=none; d=google.com; s=arc-20160816; b=AOcHWj8FdEvcCEzyF/21g6YAOEu2hr3waXttN+Cf6W+yfGQUlEqOaVQJ0E4h7Y0efV grjnIpN+wpZWZtoB2j6CIQMpL5r4GSJPYcTaW/N65cMk6r2/+c7jx+pMjyeqVQgHK3Uj GS7IFp+XERZqSKPTjP39Xd8FcPVUXHkhrOWAe6O62MsRvTMcl2XWgQFrUaVp33psF0v4 btEmAYBgX4tiRh4+iQ+BOSVFF7CbHh7YO0FTQ3kkC8HelUV3xpM/++ik900jd+qDMM6Q MuYXqqLF7gLFgryZTu07Vq6H1Io2woTBgG1CtFt6LT6KU9IfK5aK/VdhecolW3747v70 BkHg== 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:arc-authentication-results; bh=26DZ2AuMqdv2f/39BMOK7BoXB7QCnQ4Md5u3RIuDbus=; b=n84KWGp/WGawA3kEW8U6dchOqcQYj3Iq7F8uf25XQ6qVBeebEZMiAE9eISlELMDzS4 STHZ7I9zNddvGqDbcEVeVlZRv875+HnFFrcZp38PGTAmmLAQCN0UEEAPK6RQOMqOt71X 8kHyshm0EOZQJE4WaeJboEezrvEmeZKjkjgyNukofQfQNTXOYkn+VaT+KjHs2AmOQGwk 9DfogeP1JCZooN1dNaskEgOV1I10jyPZQhBk7t6eddrcb2CtLgv6Q0z+sTnYurvPcUdP 1n8NdEGUsH6m7/+tN+AJfM+C8st5pEoK03L6FXYawmuDLyyzZO4PlySdF8ybCpyPvEHu 1Kvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QQYxIg35; 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=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 o187si13954749pga.831.2017.11.22.12.06.26; Wed, 22 Nov 2017 12:06:26 -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=@linaro.org header.s=google header.b=QQYxIg35; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751561AbdKVUGV (ORCPT + 28 others); Wed, 22 Nov 2017 15:06:21 -0500 Received: from mail-lf0-f65.google.com ([209.85.215.65]:42557 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751260AbdKVUGT (ORCPT ); Wed, 22 Nov 2017 15:06:19 -0500 Received: by mail-lf0-f65.google.com with SMTP id m1so19586573lfj.9 for ; Wed, 22 Nov 2017 12:06:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=26DZ2AuMqdv2f/39BMOK7BoXB7QCnQ4Md5u3RIuDbus=; b=QQYxIg35P5YHV6aJj+hIa/P0uyxAvnHyzRl12iUnhIx+IaJa+KTSEZcOkjwukxacyC /YlU21ML2n4Pkf5UH6GkpfsK+Jy8JjzCEiRQv7ExzDkwqI0ZdlTwuoOdNSxmQ5GXWqai 2jB7ivhIcaPQ4oRkujsNIuG39hhC7SAJOqxIM= 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=26DZ2AuMqdv2f/39BMOK7BoXB7QCnQ4Md5u3RIuDbus=; b=klR2EMXE3iOgoANNqJVoU7cTloEfu+Y/faQ9GRuMPbtIUdobJdRJhF2aVHjeBPlEWQ EQvfYQGYFs7JIxkHO82Gn0cMhmKaDh4MH+b6f6WZtCeiGy1gO+E0CG+dyeuoI8YnOEb6 XHFjsaGxyWeurP5sqBP2bQORrXJInXcY3OcA/2pTAOnUxoA0hhkrgmgi60h36bmeAFLU W4eMdMfi7JZfEnvY3CnSLWnMmYrTbcrejHWeWJxveZTnQc+k1YKahl6DjmSQp/MriS+F grflX0hgKiB4x+hJ2pAuVZiJHkNLzNFRe4+yf5zHygB6LP2k82M5ltVALagar0b4ydUi Wf1g== X-Gm-Message-State: AJaThX6wJ7R+lp9nLnEK698EOPbGe9enEtFnw07lpdQxZpaDBS3hQf76 tuiGV2tbkdDAiBvu4CfyleQHBq1XD1o= X-Received: by 10.46.1.205 with SMTP id f74mr9153227lji.16.1511381178100; Wed, 22 Nov 2017 12:06:18 -0800 (PST) Received: from localhost.localdomain (c-567171d5.014-348-6c756e10.cust.bredbandsbolaget.se. [213.113.113.86]) by smtp.gmail.com with ESMTPSA id t25sm1027915lja.92.2017.11.22.12.06.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 22 Nov 2017 12:06:17 -0800 (PST) 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: gemini: Fix usage of 3512 groups Date: Wed, 22 Nov 2017 21:04:14 +0100 Message-Id: <20171122200414.24874-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.14.3 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The pin config lookup function was still hardcoding the 3516 pin set, which is obviously wrong. Use the pointer in the state container. Signed-off-by: Linus Walleij --- drivers/pinctrl/pinctrl-gemini.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.14.3 diff --git a/drivers/pinctrl/pinctrl-gemini.c b/drivers/pinctrl/pinctrl-gemini.c index e9b83e291edf..c11b8f14d841 100644 --- a/drivers/pinctrl/pinctrl-gemini.c +++ b/drivers/pinctrl/pinctrl-gemini.c @@ -2322,7 +2322,7 @@ static const struct gemini_pin_conf *gemini_get_pin_conf(struct gemini_pmx *pmx, int i; for (i = 0; i < pmx->nconfs; i++) { - retconf = &gemini_confs_3516[i]; + retconf = &pmx->confs[i]; if (retconf->pin == pin) return retconf; }