From patchwork Thu May 30 08:55:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 13679939 Received: from fgw21-7.mail.saunalahti.fi (fgw21-7.mail.saunalahti.fi [62.142.5.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1B9F6152787 for ; Thu, 30 May 2024 08:58:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.142.5.82 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717059482; cv=none; b=YIrsnb8wVIjTvBHoSlaxM8eL25K0Rl3waeH5Op1g3IMhkXawfKEjHNtKIEVhjOiUMqk+CYz7O2esqt22D5hmknWd5/qYklECQxDwIvUtFzvepIuAdT5yBk+OiSo8xCUhEUV/lc7sOHRFukYjpVmKz2L0hPhVDHoLR/DhHzb7WDs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717059482; c=relaxed/simple; bh=rMtuf0zcS3kB8x7D/HT0/cZ54ltIPRIKq3ttpS2CiSg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VqKbMIDrpSyLYw2kevs+/cn2doGrwk8TUy092ezlm6wKZHsugf92fF4qugJKvidn3x0eSVs8wuQfBFDMj1aXqHmiusQSq2xWI9X870mKEao83Cb1EtFehJ03uvCg56T2DVLKky257iVqh7yFqJfVPV9w6As56BPwoVYgAfQrgfk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com; spf=fail smtp.mailfrom=gmail.com; arc=none smtp.client-ip=62.142.5.82 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=gmail.com Received: from localhost (88-113-26-230.elisa-laajakaista.fi [88.113.26.230]) by fgw20.mail.saunalahti.fi (Halon) with ESMTP id b11f2cc6-1e62-11ef-8d3e-005056bd6ce9; Thu, 30 May 2024 11:57:52 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , Linus Walleij , AngeloGioacchino Del Regno , Daniel Golle , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-mips@vger.kernel.org Cc: Dong Aisheng , Fabio Estevam , Shawn Guo , Jacky Bai , Pengutronix Kernel Team , Sascha Hauer , Sean Wang , Matthias Brugger , Paul Cercueil , Lakshmi Sowjanya D , Andy Shevchenko Subject: [PATCH v3 00/11] pinctrl: pinmux: Embed and reuse struct Date: Thu, 30 May 2024 11:55:09 +0300 Message-ID: <20240530085745.1539925-1-andy.shevchenko@gmail.com> X-Mailer: git-send-email 2.45.1 Precedence: bulk X-Mailing-List: linux-mips@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 As promised to Linus W. there is a series that converts struct function_desc to use struct pinfunction. With this it both struct group_desc and struct function_desc will rely on the generic data types (struct pingroup and struct pinfunction respectively). I haven't compiled everything, some builds might fail. Anyway, comments, reviews, testing are all appreciated. In v3: - added 'moore' to the mediatek patches summary (AngeloGioacchino) - added tags (AngeloGioacchino) - fixed build error in IMX driver (LKP) In v2: - fixed compilation problems found so far by LKP Andy Shevchenko (11): pinctrl: berlin: Make use of struct pinfunction pinctrl: equilibrium: Make use of struct pinfunction pinctrl: ingenic: Provide a helper macro INGENIC_PIN_FUNCTION() pinctrl: mediatek: moore: Provide a helper macro PINCTRL_PIN_FUNCTION() pinctrl: pinmux: Add a convenient define PINCTRL_FUNCTION_DESC() pinctrl: pinmux: Embed struct pinfunction into struct function_desc pinctrl: imx: Convert to use func member pinctrl: ingenic: Convert to use func member pinctrl: keembay: Convert to use func member pinctrl: mediatek: moore: Convert to use func member pinctrl: pinmux: Remove unused members from struct function_desc drivers/pinctrl/berlin/berlin.c | 21 +- drivers/pinctrl/berlin/berlin.h | 6 - drivers/pinctrl/core.h | 2 +- drivers/pinctrl/freescale/pinctrl-imx.c | 14 +- drivers/pinctrl/mediatek/pinctrl-moore.c | 10 +- drivers/pinctrl/mediatek/pinctrl-moore.h | 6 + drivers/pinctrl/mediatek/pinctrl-mt7622.c | 32 +- drivers/pinctrl/mediatek/pinctrl-mt7623.c | 42 +- drivers/pinctrl/mediatek/pinctrl-mt7629.c | 20 +- drivers/pinctrl/mediatek/pinctrl-mt7981.c | 34 +- drivers/pinctrl/mediatek/pinctrl-mt7986.c | 24 +- drivers/pinctrl/pinctrl-equilibrium.c | 24 +- drivers/pinctrl/pinctrl-equilibrium.h | 12 - drivers/pinctrl/pinctrl-ingenic.c | 707 +++++++++++----------- drivers/pinctrl/pinctrl-keembay.c | 22 +- drivers/pinctrl/pinmux.c | 19 +- drivers/pinctrl/pinmux.h | 19 +- 17 files changed, 503 insertions(+), 511 deletions(-)