Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp565682rdh; Thu, 23 Nov 2023 11:35:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IHCUfidiC+g2xdibVYc4ExAry/UEnraH2O7NglDlpNCnD06K7+vcxjM0jHS163zelihVQYE X-Received: by 2002:a05:6a00:2d19:b0:6be:b79:eca with SMTP id fa25-20020a056a002d1900b006be0b790ecamr563709pfb.32.1700768124133; Thu, 23 Nov 2023 11:35:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700768124; cv=none; d=google.com; s=arc-20160816; b=S1uJfYMTJKGY9MHnOP64S1BDHSH4h94brcZ5rogdmgF1gOhyu1vU9EXwJnpYTacPyB JLe7mTqF/PwTqDgSk1w4A0CwmUKQ0Jfj43PZgwdFfXpY6YEYW6Voet6CSamVjfqDPyfd wgd8ICsXpUrWpLHDKb0OrLc4rpI1AqO4RDGAIsV+gCY7cGsfBMzgen9gxiXeI/d8vdiM YdVuz3uBlVGyfRnL0fHvB3eQdX99wO54Bd85Fjjl4FCw8Y4duTjU95TZzW+VbosIDEqk 2G+9/Z9kETT5kEymxAp2BZZhIZzKsK0mHPPYxlKkjMWTkF0bjUik49mGKHpk58u0EC+k do2g== 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=3pCoAXUVTPJNXyWVwpcufyPb4MHPdzEPSkECtmUPXWY=; fh=o6/j60XBkz0cs1N8PQkcSMZ4tgCM5mUF5G/ULMywbv8=; b=Qf//r/dTb606t7Pj9+iLH1GFnc+tzM3fxakxKsRPGBtZW+k9XwcMreBAO3//ARtr18 g49rDZ+N7aRbCX05EAIXQ8ncEiVLkZlFO0gnx3dEKxfLZzTqfbyJgI6M9560YvPkMgrr cwsdVsG1KFgJVjb2wp5EGY0GozQ6m7D43eGw+IMmK39MY2ycxpMikA/VK2s6hULKaQ8d 3lROu3kRPjhZdNnUwctqdj/IQtT6Z8ThehgsJ4cNG8lYVNcZOt7XbvV65kS6E1+zZa53 b2vCzuu8mjHRBZQ4JVjKJVbESFi0wOgPv1yAbbOvqwdbHcdPhQm3Vn1Yfh4D70iK9/nS KkNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=j1nYIIO5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id p19-20020a056a000b5300b006c3077a340dsi1867071pfo.285.2023.11.23.11.35.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 11:35:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=j1nYIIO5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id ABBF780A1A56; Thu, 23 Nov 2023 11:35:21 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232271AbjKWTe4 (ORCPT + 99 others); Thu, 23 Nov 2023 14:34:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230025AbjKWTeU (ORCPT ); Thu, 23 Nov 2023 14:34:20 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63A7010F1; Thu, 23 Nov 2023 11:34:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700768059; x=1732304059; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=B/Nvafeg+or7X3fBtSVgPAx87y495D+9YW1QS9ZZz18=; b=j1nYIIO56lWtvp/GK8e02TDfjFzLAgoTe2Zd39UStxckGBvHzyDWnhhd wkiPiGvgYtPygRN96KsjXduA8mq5zNrMMj/KwHWfenMxQLcvL3DkrU47h o/zzA8kJ+6S2bVjVO9YwFLSXa5A9LtZ3rpugetSgnyFGiLok+lx7BgZYE 9MFjikuVS+zOkVpx1kWMdb45p9ZwQK/NYZ5SHALsEkBv1USOkRaxJAT3Q WRlxwqbuqmCAFwsLmQy5ko/04MP+p3sDyGeujNuEoLL6Hw4UcMD3TuH+6 TnG+q3bjXyzhKPOOvBTaMA5WtEqywHwqGZr5nLDFodItCjI6ZGYEfyTLX Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10902"; a="371671498" X-IronPort-AV: E=Sophos;i="6.04,222,1695711600"; d="scan'208";a="371671498" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Nov 2023 11:34:17 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10902"; a="771062262" X-IronPort-AV: E=Sophos;i="6.04,222,1695711600"; d="scan'208";a="771062262" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga007.fm.intel.com with ESMTP; 23 Nov 2023 11:34:09 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id 412997AF; Thu, 23 Nov 2023 21:33:59 +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 , Andy Gross , Bjorn Andersson , Konrad Dybcio , Emil Renner Berthing , Hal Feng Subject: [PATCH v2 13/21] pinctrl: bcm: Convert to use grp member Date: Thu, 23 Nov 2023 21:31:41 +0200 Message-ID: <20231123193355.3400852-14-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.43.0.rc1.1.gbec44491f096 In-Reply-To: <20231123193355.3400852-1-andriy.shevchenko@linux.intel.com> References: <20231123193355.3400852-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 howler.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 (howler.vger.email [0.0.0.0]); Thu, 23 Nov 2023 11:35:21 -0800 (PST) Convert drivers to use grp member embedded in struct group_desc. 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