Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4180733rdb; Mon, 11 Dec 2023 11:04:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IFGQpRrZGe6hEtOwoZiXzg4lJsOzfuYvOajCRn65rejj3i0jf7T985bhcqr0oUkjccAfLkq X-Received: by 2002:a05:6a20:3d02:b0:18c:4800:b0ac with SMTP id y2-20020a056a203d0200b0018c4800b0acmr2541296pzi.23.1702321469519; Mon, 11 Dec 2023 11:04:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702321469; cv=none; d=google.com; s=arc-20160816; b=JSsY1EFojTqQQaM4Xpo1zOnDthgA8BrmegqkukOK2wy8LP2RyA83Z5nYBb4O1w/cL9 Y1eGN6gTZxHiHIfevumrbNNM/fVmvN7MvE5VZ17dpPvzrBezOJ7GiegBAS+nVFcW8Nhb uXRVltXpDabezDPydYzmPAeEM4xmBXPgZbtfY5PMI9pTd2V7ap0toq2PsofuLd540whS h9n3Y4lhl4BudL/7Ev2E2vQJLB5sOeTA+4YkcwVCucbVeI85cO47lg/f9WBD/z27TdZ2 RUJw6CUPC+/gY92Adk7dbgpQpPJBXrpjgdf4gRBghDN0ln82ixbrJWIpipRWkMgFy9ZA 80ig== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=ga1eW2Puko/CFBYQeSNtHdykh4udzY2MeoM9MrS5EIs=; fh=uj0Z2SyYowlbgQPZGFjUvktLAqf7tvIwEfCWEzCNe+c=; b=DrJIwTK7yzKL2l5vWPOguEEPVb7rXl1X1wq7Sq8o9XHEV7KWuKWx7Yo6frNficwXl3 y+Z7NMwLtXcFE1ooiOCTTZGrhiKudDYRNRqJdQMAeey7nrBHWLrkXS8nnkos4vr+3fh8 SRYHMplB7mQAzgsE1PkWVUW7L80Jf2uywEYG+GrvLvCYna6qYe8JgUNBW46ROpmECJH8 GXp5J7Q0NDzHqKOWSLKfd3lkvmoTqY6MrDokpFpE2oCAQlXksZCzS6RvJSEjzilregur xRiR5yfyz6Ti8zAiPVIRn9NwqZFrg3NTDnFX3NlTpxuBSqQVrL2FYUURGcC1AB6NJdSW B0Sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=RduQeacq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id s15-20020a63214f000000b005b929886d2bsi6348237pgm.138.2023.12.11.11.04.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 11:04:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=RduQeacq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 2A426809B6FE; Mon, 11 Dec 2023 11:04:24 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344427AbjLKTDf (ORCPT + 99 others); Mon, 11 Dec 2023 14:03:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344402AbjLKTDb (ORCPT ); Mon, 11 Dec 2023 14:03:31 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 929C7C0; Mon, 11 Dec 2023 11:03:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702321417; x=1733857417; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Q2BczxrNZm1mBCco6sqW/QGBn/6Xmav22CnVogTYodc=; b=RduQeacqgb/9arZ5AqJQFik8Y/nIT4tCmYeQAn4NpAqUp6yFdRSNz9Oq lfgyjfXn8Wgg4rVIg/TvBVC/AUkuh9zHYMyg/cs52y6XO0H7THj9sFfy3 7+vBQW082ekjdY8RrSZvIosmCaCQVOMO7o8o55jQjDID6fzu0w7kzbtJC tD3+wf+KbCR68i3wtZ/yAant2SYfp59qHnOhiixi6MYJQkeq1Vo8hJpMB s/OmJllyjOuH9VUPdKzhRT60S7XmvKHkFvUFKA63OF5k3J0zcWCZGib07 sKh2B7hN/j/Rl2+WPoJrAKhofmhxHl/1uxjxNMUykUh9l520OFnsNYWWF g==; X-IronPort-AV: E=McAfee;i="6600,9927,10921"; a="480893475" X-IronPort-AV: E=Sophos;i="6.04,268,1695711600"; d="scan'208";a="480893475" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Dec 2023 11:03:36 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10921"; a="766491653" X-IronPort-AV: E=Sophos;i="6.04,268,1695711600"; d="scan'208";a="766491653" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga007.jf.intel.com with ESMTP; 11 Dec 2023 11:03:24 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id 4AFB52AB; Mon, 11 Dec 2023 21:03:23 +0200 (EET) From: Andy Shevchenko To: Linus Walleij , Bartosz Golaszewski , Andy Shevchenko , Geert Uytterhoeven , Rasmus Villemoes , 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, linux-mips@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 , Emil Renner Berthing , Hal Feng Subject: [PATCH v5 00/13] pinctrl: Convert struct group_desc to use struct pingroup Date: Mon, 11 Dec 2023 20:57:53 +0200 Message-ID: <20231211190321.307330-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.43.0.rc1.1.gbec44491f096 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 fry.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 (fry.vger.email [0.0.0.0]); Mon, 11 Dec 2023 11:04:24 -0800 (PST) The struct group_desc has a lot of duplication with struct pingroup. Deduplicate that by embeddind the latter in the former and convert users. NB. The function_desc is in plan to follow the similar deduplication. This time test-compiled with old GCC 8 for arm64, besides GCC 13 and LLVM 16 for x86_64. In v5: - dropped applied patches - elaborated the need of the conversion (Fabio) - reworked to avoid build errors on old GCC (Marek, Krzysztof, Geert) v4: https://lore.kernel.org/r/20231129161459.1002323-1-andriy.shevchenko@linux.intel.com In v4: - made pins also unsigned in struct group_desc (Geert) - made local pins variable unsigned in renesas drivers (Geert) - collected more tags (Paul, Geert) v3: https://lore.kernel.org/r/20231128200155.438722-1-andriy.shevchenko@linux.intel.com In v3: - fixed reported bug in equilibrium code (LKP) - collected tags (Emil, Florian, Paul) v2: https://lore.kernel.org/r/20231123193355.3400852-1-andriy.shevchenko@linux.intel.com In v2: - added a few patches to fix multiple compile-time errors (LKP) - added tag (Jonathan) v1: https://lore.kernel.org/r/20231122164040.2262742-1-andriy.shevchenko@linux.intel.com Andy Shevchenko (13): pinctrl: core: Add a convenient define PINCTRL_GROUP_DESC() pinctrl: mediatek: Use C99 initializers in PINCTRL_PIN_GROUP() pinctrl: ingenic: Use C99 initializers in PINCTRL_PIN_GROUP() pinctrl: core: Embed struct pingroup into struct group_desc pinctrl: bcm: Convert to use grp member pinctrl: equilibrium: Convert to use grp member pinctrl: imx: Convert to use grp member pinctrl: ingenic: Convert to use grp member pinctrl: keembay: Convert to use grp member pinctrl: mediatek: Convert to use grp member pinctrl: renesas: Convert to use grp member pinctrl: starfive: Convert to use grp member pinctrl: core: Remove unused members from struct group_desc drivers/pinctrl/bcm/pinctrl-ns.c | 4 +-- drivers/pinctrl/core.c | 11 +++--- drivers/pinctrl/core.h | 17 +++++---- drivers/pinctrl/freescale/pinctrl-imx.c | 31 ++++++++-------- drivers/pinctrl/mediatek/pinctrl-moore.c | 13 ++++--- drivers/pinctrl/mediatek/pinctrl-moore.h | 10 +++--- drivers/pinctrl/mediatek/pinctrl-paris.h | 10 +++--- drivers/pinctrl/pinctrl-equilibrium.c | 4 +-- drivers/pinctrl/pinctrl-ingenic.c | 35 ++++++++++--------- drivers/pinctrl/pinctrl-keembay.c | 2 +- drivers/pinctrl/renesas/pinctrl-rza1.c | 2 +- drivers/pinctrl/renesas/pinctrl-rza2.c | 10 +++--- drivers/pinctrl/renesas/pinctrl-rzg2l.c | 4 +-- drivers/pinctrl/renesas/pinctrl-rzv2m.c | 4 +-- .../starfive/pinctrl-starfive-jh7100.c | 8 ++--- .../starfive/pinctrl-starfive-jh7110.c | 8 ++--- 16 files changed, 84 insertions(+), 89 deletions(-) -- 2.43.0.rc1.1.gbec44491f096