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: 840509 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-gpio-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="QQYxIg35"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3yhtlM2xM3z9s71 for ; Thu, 23 Nov 2017 07:06:55 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751472AbdKVUGV (ORCPT ); Wed, 22 Nov 2017 15:06:21 -0500 Received: from mail-lf0-f67.google.com ([209.85.215.67]:43720 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751459AbdKVUGT (ORCPT ); Wed, 22 Nov 2017 15:06:19 -0500 Received: by mail-lf0-f67.google.com with SMTP id 73so19579337lfu.10 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=GJGX12DMoQnLd0rGrA/LJC+19wLsWWJZPplVpctj2SRTBPltgb3xuNj49NBs1bFW5j 5oH3a8LqEkUs6W80O7bEMJAvA6TUQpA14/R/7deKwfswWd2q2mwf0QaqcZhQwSGqZURu +rQlyO0qr/1aayvd32JY11tTjnSR8+G7gfKrTse2KI0lNKSzOMWMwAgbzdWq447cHgN6 0AohlV5w+86uKk6S8c4tleHFX8CFHcc8ocklsNTKuCGTCBev9cVdGEngkHX1jAY7M+rA TNpfdS75AOVpYXTrlE3de0/euDTGdvDUo2YeFd7bveGY3ogtFe05TLKUNgI4yowKcevq xXVQ== X-Gm-Message-State: AJaThX4q/VM1xjWXlrFbvcbHgox5KbTJ+rEYSAz/XXK645IafYw12Qy3 WLEyTnZb2tbW5hGupzO8ihLTMg== X-Google-Smtp-Source: AGs4zMbplPIMM7yQNoJvOKj123fYvJg9n23pL9f4Ee8xx2ppiBYtN/VN6K8nhfLMMzZVBIyPv7Nnbw== 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-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@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(-) 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; }