Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp199174lqb; Tue, 28 May 2024 12:50:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXMKkoB/5eEHNG97RptmUMyWRB7fCTTMle9GHeXjxQfDJtovykHzjdo8wVu8RlKDfgnt3o8uzrscyabaqcu0TD7DDKSvR5XIkS8hDAZTg== X-Google-Smtp-Source: AGHT+IGxbFKrlwMLC4v1uusw75E5Oyl4prIDwxJdUgx2VOfjFfh3ZVr9ut4ifxjF4ARSOy6nbNkC X-Received: by 2002:a05:6214:2d4a:b0:6ad:7663:f4c6 with SMTP id 6a1803df08f44-6ad7663f857mr81314726d6.45.1716925805238; Tue, 28 May 2024 12:50:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716925805; cv=pass; d=google.com; s=arc-20160816; b=SobAtzuM1Ssv51Ps+g9KgOJwYdLsYV84yZphJl2/4z3A5zJfkhJhH4UGgcP95rDa5L K1Fk9ifVlMLXLjqpvmjtfJ/emMJ65VjktvO/kHyaCxzYNes0Lnu2lc8hjL8KtjMyOe8l sr1a0oAwMlm+seKyNjEiVLhCowFNfax6A6XhT+yq3vsPusqpK0OOs5NON8WTkrgOMcd4 0al+xF7a5jY6lbspbvz2dSOg5Alh5AlZ4ZmwbORkOkE4x+KrvNEJLlXrEdxw0jaBWufg XlM/0CrfqSeVhiNQ6TilKK8ip3QVodJHnXvTwIn+XyK25qARP+eXyJldyROB9THbb6OP R2Og== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=71ljvxZCw9vljhmnkKkN6Ulx2s9lUefLJ4DYw2aEUwI=; fh=7i0PP+tNNxhEqCNt1DaWuCxUYRb0M4WDBE9BrWIvsBQ=; b=UQBwouhN+cKZIat/hayxRJ4r2KSe6v6TKdjD/YZA4xUjaS4RpcyImY0uHIF7Vi3cTb uPgXAVgx+q+c5JBCUwVS1ApTq6zEtDYo4ZUjZEOwNYgNKqrSdTTCVAcXdBoN+9na298e bNafweyU3cTJ6ss7LfTM0fLZ1O2eHy55NC9WtBXUALaozkpRr3aXlJQG7Q34MoMlxhif AyoJkcPHqdQ7saXIB8Fg6sxjM858hMVbnvi1QJjY8PDqWB2544/AUnAgufMJv7o/z7xY Jo2ovGBTg19D0ZUA/2YGPln2NaPwzJxFMY9eC93HEs/Pc++wUyTF4+wfF21m+6gKUHOO h8sw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-192974-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192974-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6ac113316cfsi110378846d6.333.2024.05.28.12.50.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 12:50:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192974-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-192974-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192974-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id E74481C24CF4 for ; Tue, 28 May 2024 19:50:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DC79717837E; Tue, 28 May 2024 19:49:58 +0000 (UTC) Received: from fgw22-7.mail.saunalahti.fi (fgw22-7.mail.saunalahti.fi [62.142.5.83]) (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 E8F1C3A8CB for ; Tue, 28 May 2024 19:49:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.142.5.83 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716925798; cv=none; b=UdKBdBbA0rGgKXoc6oosJqxVfq5/t2wwQQJta/vjCXjK2tceToKeUQVJEQY9Xqd+cfXye/3RfWUz92bwlKFIS7ObFk4jR0GTdkD+T0lOUXMwEO/8Txq2oSU/R6ph63Wc5BQsjvocKsI15S2QQ/0gxaxp972c3G/b7ouySqufMak= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716925798; c=relaxed/simple; bh=uR49CWG0UeYTwW1fa6tgkCtbg0rKg8I1n0NkFO1bw4Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OMzNmSvzmKXMUfMe9fY3FHvV+QBWIAbGaYFrMTX62cgXhqrSgmYhB8OH0hmNDGeJsEUluC7/AoIBZJ4RMqWePMIOhPLwbJE4LEpB+HGawBYhRTXt8WSqJgZ5ZpO77ExufLtnjgdVVdeelXjKa0g6LhZDBOJhwxi9m0qP5sYbdzU= 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.83 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 fgw23.mail.saunalahti.fi (Halon) with ESMTP id 73e10ddf-1d2b-11ef-80c1-005056bdfda7; Tue, 28 May 2024 22:49:54 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , Linus Walleij , 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 , AngeloGioacchino Del Regno , Paul Cercueil , Lakshmi Sowjanya D , Andy Shevchenko Subject: [PATCH v2 00/11] pinctrl: pinmux: Embed and reuse struct pinfunction Date: Tue, 28 May 2024 22:44:51 +0300 Message-ID: <20240528194951.1489887-1-andy.shevchenko@gmail.com> X-Mailer: git-send-email 2.45.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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: 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: 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(-) -- 2.45.1