Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4698295rdh; Wed, 29 Nov 2023 08:16:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IFLDXq6Y4zdd6kD0pH1+8cX2zKmTbVMTNfC2dCqK4tI6VrBmHWaWv+zTyx9MF7lmvIla+M6 X-Received: by 2002:a05:6a00:27a5:b0:6cb:b59d:ed8f with SMTP id bd37-20020a056a0027a500b006cbb59ded8fmr19785501pfb.28.1701274591864; Wed, 29 Nov 2023 08:16:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701274591; cv=none; d=google.com; s=arc-20160816; b=FyOG33NEIplHccwxzzsl6nuoUId+B6wXRfZUzxs6Yg7cujX8ES9QQj1IB5+ame25PQ F6zJRdH9Uw2xlwz+m8rkD/aWNRY/XpiPkZN7etweXOW8Y+BG9as6JkDs4GJ92cmto+TK ZYz+rwtjMecXxhdAncQjHgGecXGoYStELcgdmU/9udKQN1oOj0wWtXzFndliEmlnF03i lG8uQXdIi3HdkWqnYmRElTlGAbcrRV/cseYr8gKEUDDOxp5dHEevMR6ua1byrN1KJ+aN z+pSPLH2iD4VYUOF17JGpzKIyqdOozl2hM/0YHTvg67Fv0LLwe5S11MVqOM73rKjfK3w 4YJg== 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=fQT0T6WFk4RchgUW8R7M88uDT0L5ZWJs2n4aaV0f1Pw=; fh=caBBE6hWhbVFlVbOmdjOlKXtB7Sp9zqj9LDLkI5bGGs=; b=bXZ9m0KzoS0+lAfqgAJF5+j+D+zP2H0ZvL823e/ZKIEUoEbSuWgkxZzimeMtoxI0Va /18lWoVQ/FbuTDP7L8cSx6rD1VC1wfPlQTYeiYJlJZPA+TBuQsfBUrmQ0yu8UDW2qNWo //f61LZonTxnZrD2vcnAIYVvkKfzVhCQP2Fevk1XUzD3SznTfEtprG6xShVgIhP1sShs cJPtNVTl4n1x/OQ9biEF0vKtQ1DyUjo+SF3ser9EnBWETN2+FvS0hnnYzoVbc93GrlN0 Yg66lQCPrpu0k9QxTR1WQ/ULcXQf0QiCEkT99uxYCSEVoBU1aqFJW41k0MkA/3sAn79Q zJlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=EvBioQpr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id s18-20020a635252000000b005c2201d6a55si14338158pgl.39.2023.11.29.08.16.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 08:16:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=EvBioQpr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 16DF7803FC12; Wed, 29 Nov 2023 08:16:26 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233420AbjK2QQC (ORCPT + 99 others); Wed, 29 Nov 2023 11:16:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230324AbjK2QPW (ORCPT ); Wed, 29 Nov 2023 11:15:22 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8918510EA; Wed, 29 Nov 2023 08:15:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701274528; x=1732810528; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=3i/qNugva+8rE/EMw94820KaaNfJNx5Amurjj3c6AyU=; b=EvBioQpr4HdwhVXnDtpT0mAgB3XsiW8caDdLzT7mXo/KuL/vA4OCS0E+ 08wFKLnzZ1vltMLG74YKAAJNRBIwf5iVH+bZPPIAVIwQvYXwcJw9mS0z6 5K97SiW5TjP5hjD+ckwGJpbOje8LfnXUWPVonOvD+jrqBQV85FSE3Hf1b ZBtZ5Arg/no1YeQgtBF+entMQUESx6nhLkpFolX27Ys9omyoW71JCGLDM HZYQzt4nIejyKLlRLRMiqFtU07BBApr5oErplaZzuXyG/5sgbwn+v2e+3 JllC96gd2IWYGQ/JiJAKOI2rJ8stSqlgJQpRF/btCgYsC9KWc68l297ym g==; X-IronPort-AV: E=McAfee;i="6600,9927,10909"; a="373372755" X-IronPort-AV: E=Sophos;i="6.04,235,1695711600"; d="scan'208";a="373372755" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Nov 2023 08:15:23 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10909"; a="892498884" X-IronPort-AV: E=Sophos;i="6.04,235,1695711600"; d="scan'208";a="892498884" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga004.jf.intel.com with ESMTP; 29 Nov 2023 08:15:12 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id 059BFB21; Wed, 29 Nov 2023 18:15:02 +0200 (EET) From: Andy Shevchenko To: Linus Walleij , Bartosz Golaszewski , Andy Shevchenko , Rasmus Villemoes , =?UTF-8?q?Jonathan=20Neusch=C3=A4fer?= , Krzysztof Kozlowski , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Geert Uytterhoeven , Biju Das , Claudiu Beznea , Jianlong Huang , linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, openbmc@lists.ozlabs.org, linux-mips@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-renesas-soc@vger.kernel.org Cc: Ray Jui , Scott Branden , Broadcom internal kernel review list , Dong Aisheng , Fabio Estevam , Shawn Guo , Jacky Bai , Pengutronix Kernel Team , Sascha Hauer , NXP Linux Team , Sean Wang , Paul Cercueil , Lakshmi Sowjanya D , Bjorn Andersson , Andy Gross , Konrad Dybcio , Emil Renner Berthing , Hal Feng , Florian Fainelli Subject: [PATCH v4 14/23] pinctrl: bcm: Convert to use grp member Date: Wed, 29 Nov 2023 18:06:37 +0200 Message-ID: <20231129161459.1002323-15-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.43.0.rc1.1.gbec44491f096 In-Reply-To: <20231129161459.1002323-1-andriy.shevchenko@linux.intel.com> References: <20231129161459.1002323-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 29 Nov 2023 08:16:26 -0800 (PST) Convert drivers to use grp member embedded in struct group_desc. Tested-by: Florian Fainelli Reviewed-by: Florian Fainelli Signed-off-by: Andy Shevchenko --- drivers/pinctrl/bcm/pinctrl-ns.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/bcm/pinctrl-ns.c b/drivers/pinctrl/bcm/pinctrl-ns.c index d099a7f25f64..6bb2b461950b 100644 --- a/drivers/pinctrl/bcm/pinctrl-ns.c +++ b/drivers/pinctrl/bcm/pinctrl-ns.c @@ -171,8 +171,8 @@ static int ns_pinctrl_set_mux(struct pinctrl_dev *pctrl_dev, if (!group) return -EINVAL; - for (i = 0; i < group->num_pins; i++) - unset |= BIT(group->pins[i]); + for (i = 0; i < group->grp.npins; i++) + unset |= BIT(group->grp.pins[i]); tmp = readl(ns_pinctrl->base); tmp &= ~unset; -- 2.43.0.rc1.1.gbec44491f096