From patchwork Thu Mar 9 15:49:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 66942 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp369288wrd; Thu, 9 Mar 2023 08:00:48 -0800 (PST) X-Google-Smtp-Source: AK7set8aKfx+5AsQVsDFDtnCGrAJbtlT4vFp5G5TPs5SoZUS0FwQQ1SNh7/Puu9qfhm0zoLu4FNg X-Received: by 2002:a17:902:f685:b0:19c:d49f:4296 with SMTP id l5-20020a170902f68500b0019cd49f4296mr26841237plg.67.1678377647871; Thu, 09 Mar 2023 08:00:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678377647; cv=none; d=google.com; s=arc-20160816; b=KLIPHpnBSyexe00fXu/F1GaPoMDlKHltCr//aEcyJa44AwPL2MDR/FwYxSzScfj81x RbDTaViNxfEfbs7rg4+Tpj4gfs00SUr46jgIpn/JvVT5QbBD2bdF5zuvfR0gtj0wY53R q1ZLEgRGSmw2IWkGyNIMzWahkHbntnMwB7wHm5xyAk0Y+/djkfM0QgjpgXRdNMYU3S8D hzBtaxAQNw046mwJBzWbzYruKLbxZShtd3Ar3hYzpkTUf+Hi5WabSlsQASJstey+td/u iIReTyl9syP7CBKe3zQyk5+cI05j0tzSKVvbOetvSG8O4MAyK93ZEwUW/6zRIX4XHVa6 iT7g== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=3doP5Qh80iui4dCoQV94mzeJJ78H6cWhfnuThkzdLnc=; b=pBVDlJ2JWzyMPVmxXqvnDZ/smaT0tXWn+DP42ycoF0oosWeu/O+s1O9ULFwBFsyN2H 9DD8v5gfbYEEhyblQYCHQenNFK+1dkn7HjbQ57YuU54QsyaS9Get7bDLBlF+7Uj2jKAt KsyvR3dp3TGDzLVcEF0LsCfAiTEV1sq4ffRZjbd1/3RgrOXceF9C4Yh+KsmdaaZXEOu/ 7pvQFatuw4V4EUYI0b3kW4XFZus3cKSK/9ziMX/FSTa9NPpEZot5LhNH7Nr3TjQMlsgU +3af0rQXMx+bNnGJ76H7vBp3/2yJTi3lgs9fEkAPYGv8qHXYYywexq8V1ryAvYvmpFxe zIkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bzSGWbK3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x7-20020a1709029a4700b0019cf4957404si17162500plv.24.2023.03.09.08.00.33; Thu, 09 Mar 2023 08:00:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bzSGWbK3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S231263AbjCIPuO (ORCPT + 99 others); Thu, 9 Mar 2023 10:50:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231475AbjCIPuF (ORCPT ); Thu, 9 Mar 2023 10:50:05 -0500 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8884F28B0 for ; Thu, 9 Mar 2023 07:50:02 -0800 (PST) Received: by mail-ed1-x530.google.com with SMTP id j11so8840199edq.4 for ; Thu, 09 Mar 2023 07:50:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678377001; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=3doP5Qh80iui4dCoQV94mzeJJ78H6cWhfnuThkzdLnc=; b=bzSGWbK3XBNYMI/l6mAcjcVv8J0CJHGL6ZJ6DKroEYmhmhX1kbIoMNUDAD5+NIfBqB 7aLZkpAMosJgKma9DuE/ecGfNTU7AaiDqOBGCgTEAhnr9gHZRHQiLsiDM5G7AaJHvUPx tANvC8NhYBgv95Oy+azKdLYh+nKWlN8u+ujD23DQLDoIJaP6oJjLouv3elNzYUPn1Yf0 rWCqbnX+iXOr9SC/UYKFr1rDtiwz8+KdljOWu30t3wPTfSuig37kijy16EwyjeUGGRxR kHHh/KSVziq8kKc1kMDVnToa2Px4pxaM2Jqwa+HjLFHOnByN6/C9AZ7MeLvWD/t0Rb2Q NgsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678377001; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3doP5Qh80iui4dCoQV94mzeJJ78H6cWhfnuThkzdLnc=; b=cWPY/mjZC844UladM/smX0pZx68cXUfImeqJ9rkkiqxBe69K47mYT0vYPfOuVcEHPq L4VcuFkwzaCTEdDwjUh4GOzEMvKf512rkJAZD7gjou7GJ3dH6giljeEBG6wv4BqJdnsh avL2gqMEjEOyuDTrLRfxkrX3FS9IBK44F3VyYAtvtuOUCSGNEW1fyUpRld2aqb1wgqSL nWHE99ZTxpwbLb47H5eirXrtW1tQdTbcTOKwcxYBcSdsCHeQ/+pXK5sQirteWW7nLBun oA12ZAq+IKc2IiBUorp9uiXUJogWCUsfOTFmA/+cFI3TQSXak4X/wpY9MaX+UtfcuGil C5aA== X-Gm-Message-State: AO0yUKWerhN+9TQJbFMM7/HtnQTO+yiY41OfiZNuYkEdQ+DT4PYNljDb QYCjJmRCayCDpfef/1uczzO8nw== X-Received: by 2002:a17:906:dac9:b0:8aa:c090:a9ef with SMTP id xi9-20020a170906dac900b008aac090a9efmr28883479ejb.55.1678377001056; Thu, 09 Mar 2023 07:50:01 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:7ee2:e73e:802e:45c1]) by smtp.gmail.com with ESMTPSA id h17-20020a17090634d100b008ee5356801dsm8981683ejb.187.2023.03.09.07.50.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Mar 2023 07:50:00 -0800 (PST) From: Krzysztof Kozlowski To: Bjorn Andersson , Andy Gross , Konrad Dybcio , Linus Walleij , Srinivas Kandagatla , linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 2/4] pinctrl: qcom: lpass-lpi: use consistent name for "group" variable Date: Thu, 9 Mar 2023 16:49:47 +0100 Message-Id: <20230309154949.658380-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230309154949.658380-1-krzysztof.kozlowski@linaro.org> References: <20230309154949.658380-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759906520558186062?= X-GMAIL-MSGID: =?utf-8?q?1759906520558186062?= The set_mux callback in SoC TLMM driver (pinctrl-msm.c) uses "group", not "group_num" for the number of the pin group. Other places of lpass-lpi also use "group", so let's be consistent for code readability. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Konrad Dybcio --- drivers/pinctrl/qcom/pinctrl-lpass-lpi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/qcom/pinctrl-lpass-lpi.c b/drivers/pinctrl/qcom/pinctrl-lpass-lpi.c index 27fc8b671954..bd32556d75a5 100644 --- a/drivers/pinctrl/qcom/pinctrl-lpass-lpi.c +++ b/drivers/pinctrl/qcom/pinctrl-lpass-lpi.c @@ -84,10 +84,10 @@ static int lpi_gpio_get_function_groups(struct pinctrl_dev *pctldev, } static int lpi_gpio_set_mux(struct pinctrl_dev *pctldev, unsigned int function, - unsigned int group_num) + unsigned int group) { struct lpi_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); - const struct lpi_pingroup *g = &pctrl->data->groups[group_num]; + const struct lpi_pingroup *g = &pctrl->data->groups[group]; u32 val; int i, pin = g->pin;