Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp2592317rdh; Sun, 26 Nov 2023 11:58:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IEjFRh9a44MaVS2jS+iyVweOkS0WnLSvQ+fqKjDAtwC2rxemKPxe8HiK3j81nbFc38uZUgU X-Received: by 2002:a17:90b:3a8b:b0:285:cc9c:75f8 with SMTP id om11-20020a17090b3a8b00b00285cc9c75f8mr1568724pjb.1.1701028719571; Sun, 26 Nov 2023 11:58:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701028719; cv=none; d=google.com; s=arc-20160816; b=g2fZ546shlwjW7saNRl46PTyGLiKG1cDjTgP3bjh+BYlKnri1f0zlDl3Lr2ay2CMCC PxFlfSBlWyzdvwSZLl7Bc9CJayHpRvX9JTp7uPcEAx6ORXNFqlbYd8PWmzHuzK9zUmSv 3/+3cQC/01qd25dFTvlG+8RC0FUFZFkJn9qDu/58n4F2wLg9txWWmiDIBrnL/FwmVMzm f83StB/EPYRW46VW5TTKcDGAAiDHlf6Xv647FJJJbcnfyAxHzgIS1p0Rx1RaPA2aHIbe LTie0S0rk8BRTEMcBDaqERXnWBtbPOv4zecVeb8AGMbzSHN35h74/ldcVt2JTS7/bymy tBfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:mime-version :references:in-reply-to:from:dkim-signature; bh=Fv5Sy1bgeeKuTWXOaS5zgFRHLi1qOcJDMOy9gTwJIrY=; fh=Jk2e5xuAuMQ+rrPm0Gi9hfoQUdncb7HqdodfaSgUom0=; b=PBwPeW181Mrhw8U6rWbOYJOhHKKbM/kb8gBGpxcBy8PV2bMaxQeZIIENUpEo3Xs8JV lV7N6dHQIvnlnmHFDNd0Rg2Onrr2UqphZzLVzX8rSt1yZ7utlkGQPYodisCK71scqr4T ZMtBLDXyAxtahgTo/4oUuhemyMLrYpP2ulPs9cxDQMgkJIWUEAYnT+dihbRG0KoL8VID q+wnO8Cl1WBqxMDQvrIQn8CC8PAF8cBdCvln1zf6bu3+113DmaB5I9htZ4jtzi0+kbZz Bv269inI+UjyLk8NmTfskhXb+Z3JMQGQ5NpEz2lV8iMXa8dTXjl7aLonE+ggF9THyTrx qfig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=W1Hbqeb3; 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=canonical.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id pw13-20020a17090b278d00b00285b78adbd3si2542307pjb.137.2023.11.26.11.58.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Nov 2023 11:58:39 -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=@canonical.com header.s=20210705 header.b=W1Hbqeb3; 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=canonical.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id CB9CF80966F5; Sun, 26 Nov 2023 11:58:36 -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 S229489AbjKZT6Q (ORCPT + 99 others); Sun, 26 Nov 2023 14:58:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbjKZT6P (ORCPT ); Sun, 26 Nov 2023 14:58:15 -0500 Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61C4E102 for ; Sun, 26 Nov 2023 11:58:21 -0800 (PST) Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id E7F853F0CB for ; Sun, 26 Nov 2023 19:58:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1701028696; bh=Fv5Sy1bgeeKuTWXOaS5zgFRHLi1qOcJDMOy9gTwJIrY=; h=From:In-Reply-To:References:Mime-Version:Date:Message-ID:Subject: To:Cc:Content-Type; b=W1Hbqeb3YBQmivGjXehzTQTvLBgi1m6XVWTEkoQ0sMvtK8rBGxMHozO+hMbVEulIC OaqJw9YiLds118o1/xbSSeqoHoAUO2I0VAtX253bCAPE3KIMq4lqMGnjhvjxBS3VOj r5ASHdXvuXoV8NFgzO+44Q6YH39oG6F0bW3Icuijm2RoU2iYxDBOmZIhLGqgOFgT3n Rs1ARUVMxnQolNFg/w5uul/nx0G3vQlvSnO7o4xTiHmCguKin/QjnCIcr/7/8r7+Fu +UGKOI5cOdIc3owySEoNngUB1gM/UbD1PNVLPxnLTb3lY5uktD3qv8loDOOjD8kdz0 Y5wjRX0gvDdjw== Received: by mail-qt1-f197.google.com with SMTP id d75a77b69052e-41cbb2970f4so44464191cf.2 for ; Sun, 26 Nov 2023 11:58:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701028696; x=1701633496; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Fv5Sy1bgeeKuTWXOaS5zgFRHLi1qOcJDMOy9gTwJIrY=; b=EKVN2r5BVM21eBFg1K7SOMOX6NkzrSSY4tV2u01bz0WklBma8j3dCmmXFFhOZ6+v3d SzceyPEm0IQQfkE7tc5DStSp3SDoa0OotXxWoxu7rKfOHjUuww+8H7u8b/8LwSAtIRGD tjPN01DNmrm8FDbV6/c5jodIt49jJUj30CX1BzNORwH7qrd7xGxwjNscknI6XM8Nbvjo 926rQg1Uc/quwpfcKFJxVLPFfNnT5LqbSTrsLv6hJx20+RRArpyuKniCRLgcwhWEWToT hvBtnUVWrqRCnDV9MZPfTHqkCu7miEirGHPz3TpkzbzR9qzj33E3a+UgUfdb58ZclrHZ xbtg== X-Gm-Message-State: AOJu0YzmyLOsWkBPJ/6HXhg6gKTVYSESQFbyNxfjCQtQSg09U13B2Uqu NX2+bKTBJNbsPmWN/e2DPe3T8Zz4w0isWHwZqiDiigK+VUAZcj8tvUNpLArWuJkbEza/fepbnvM k2uoThgIN9K10Sc2zaU+vlmECB2rvWLSoN8oXO5rIIhUXrJK6Oo/lVNsrhg== X-Received: by 2002:a05:622a:4e:b0:415:138e:d858 with SMTP id y14-20020a05622a004e00b00415138ed858mr10677409qtw.60.1701028695964; Sun, 26 Nov 2023 11:58:15 -0800 (PST) X-Received: by 2002:a05:622a:4e:b0:415:138e:d858 with SMTP id y14-20020a05622a004e00b00415138ed858mr10677398qtw.60.1701028695690; Sun, 26 Nov 2023 11:58:15 -0800 (PST) Received: from 348282803490 named unknown by gmailapi.google.com with HTTPREST; Sun, 26 Nov 2023 20:58:15 +0100 From: Emil Renner Berthing In-Reply-To: <20231123193355.3400852-21-andriy.shevchenko@linux.intel.com> References: <20231123193355.3400852-1-andriy.shevchenko@linux.intel.com> <20231123193355.3400852-21-andriy.shevchenko@linux.intel.com> Mime-Version: 1.0 Date: Sun, 26 Nov 2023 20:58:15 +0100 Message-ID: Subject: Re: [PATCH v2 20/21] pinctrl: starfive: Convert to use grp member To: Andy Shevchenko , Linus Walleij , Bartosz Golaszewski , Rasmus Villemoes , =?UTF-8?Q?Jonathan_Neusch=C3=A4fer?= , Krzysztof Kozlowski , =?UTF-8?Q?Uwe_Kleine=2DK=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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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]); Sun, 26 Nov 2023 11:58:37 -0800 (PST) Andy Shevchenko wrote: > Convert drivers to use grp member embedded in struct group_desc. > > Signed-off-by: Andy Shevchenko Reviewed-by: Emil Renner Berthing > --- > drivers/pinctrl/starfive/pinctrl-starfive-jh7100.c | 8 ++++---- > drivers/pinctrl/starfive/pinctrl-starfive-jh7110.c | 8 ++++---- > 2 files changed, 8 insertions(+), 8 deletions(-) > > diff --git a/drivers/pinctrl/starfive/pinctrl-starfive-jh7100.c b/drivers/pinctrl/starfive/pinctrl-starfive-jh7100.c > index ea70b8c61679..21bfbbaede72 100644 > --- a/drivers/pinctrl/starfive/pinctrl-starfive-jh7100.c > +++ b/drivers/pinctrl/starfive/pinctrl-starfive-jh7100.c > @@ -654,7 +654,7 @@ static int starfive_set_mux(struct pinctrl_dev *pctldev, > return -EINVAL; > > pinmux = group->data; > - for (i = 0; i < group->num_pins; i++) { > + for (i = 0; i < group->grp.npins; i++) { > u32 v = pinmux[i]; > unsigned int gpio = starfive_pinmux_to_gpio(v); > u32 dout = starfive_pinmux_to_dout(v); > @@ -797,7 +797,7 @@ static int starfive_pinconf_group_get(struct pinctrl_dev *pctldev, > if (!group) > return -EINVAL; > > - return starfive_pinconf_get(pctldev, group->pins[0], config); > + return starfive_pinconf_get(pctldev, group->grp.pins[0], config); > } > > static int starfive_pinconf_group_set(struct pinctrl_dev *pctldev, > @@ -876,8 +876,8 @@ static int starfive_pinconf_group_set(struct pinctrl_dev *pctldev, > } > } > > - for (i = 0; i < group->num_pins; i++) > - starfive_padctl_rmw(sfp, group->pins[i], mask, value); > + for (i = 0; i < group->grp.npins; i++) > + starfive_padctl_rmw(sfp, group->grp.pins[i], mask, value); > > return 0; > } > diff --git a/drivers/pinctrl/starfive/pinctrl-starfive-jh7110.c b/drivers/pinctrl/starfive/pinctrl-starfive-jh7110.c > index 9d71e8c13310..60160965cd29 100644 > --- a/drivers/pinctrl/starfive/pinctrl-starfive-jh7110.c > +++ b/drivers/pinctrl/starfive/pinctrl-starfive-jh7110.c > @@ -307,7 +307,7 @@ static int jh7110_set_mux(struct pinctrl_dev *pctldev, > return -EINVAL; > > pinmux = group->data; > - for (i = 0; i < group->num_pins; i++) { > + for (i = 0; i < group->grp.npins; i++) { > u32 v = pinmux[i]; > > if (info->jh7110_set_one_pin_mux) > @@ -437,7 +437,7 @@ static int jh7110_pinconf_group_get(struct pinctrl_dev *pctldev, > if (!group) > return -EINVAL; > > - return jh7110_pinconf_get(pctldev, group->pins[0], config); > + return jh7110_pinconf_get(pctldev, group->grp.pins[0], config); > } > > static int jh7110_pinconf_group_set(struct pinctrl_dev *pctldev, > @@ -508,8 +508,8 @@ static int jh7110_pinconf_group_set(struct pinctrl_dev *pctldev, > } > } > > - for (i = 0; i < group->num_pins; i++) > - jh7110_padcfg_rmw(sfp, group->pins[i], mask, value); > + for (i = 0; i < group->grp.npins; i++) > + jh7110_padcfg_rmw(sfp, group->grp.pins[i], mask, value); > > return 0; > } > -- > 2.43.0.rc1.1.gbec44491f096 >