From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: Mika Westerberg <mika.westerberg@linux.intel.com>,
Andy Shevchenko <andy@kernel.org>,
Linus Walleij <linus.walleij@linaro.org>
Subject: [PATCH v1 1/5] pinctrl: cedarfork: Switch to INTEL_GPP() macro
Date: Tue, 11 Nov 2025 20:10:25 +0100 [thread overview]
Message-ID: <20251111191214.1378051-2-andriy.shevchenko@linux.intel.com> (raw)
In-Reply-To: <20251111191214.1378051-1-andriy.shevchenko@linux.intel.com>
Replace custom macro with the recently defined INTEL_GPP().
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/pinctrl/intel/pinctrl-cedarfork.c | 37 +++++++++--------------
1 file changed, 15 insertions(+), 22 deletions(-)
diff --git a/drivers/pinctrl/intel/pinctrl-cedarfork.c b/drivers/pinctrl/intel/pinctrl-cedarfork.c
index 2ce97abeb0e4..2916f7d90090 100644
--- a/drivers/pinctrl/intel/pinctrl-cedarfork.c
+++ b/drivers/pinctrl/intel/pinctrl-cedarfork.c
@@ -21,13 +21,6 @@
#define CDF_GPI_IS 0x200
#define CDF_GPI_IE 0x230
-#define CDF_GPP(r, s, e) \
- { \
- .reg_num = (r), \
- .base = (s), \
- .size = ((e) - (s) + 1), \
- }
-
#define CDF_COMMUNITY(b, s, e, g) \
INTEL_COMMUNITY_GPPS(b, s, e, g, CDF)
@@ -288,24 +281,24 @@ static const struct pinctrl_pin_desc cdf_pins[] = {
};
static const struct intel_padgroup cdf_community0_gpps[] = {
- CDF_GPP(0, 0, 23), /* WEST2 */
- CDF_GPP(1, 24, 47), /* WEST3 */
- CDF_GPP(2, 48, 70), /* WEST01 */
- CDF_GPP(3, 71, 90), /* WEST5 */
- CDF_GPP(4, 91, 96), /* WESTC */
- CDF_GPP(5, 97, 101), /* WESTC_DFX */
- CDF_GPP(6, 102, 111), /* WESTA */
- CDF_GPP(7, 112, 123), /* WESTB */
- CDF_GPP(8, 124, 143), /* WESTD */
- CDF_GPP(9, 144, 144), /* WESTD_PECI */
- CDF_GPP(10, 145, 167), /* WESTF */
+ INTEL_GPP(0, 0, 23, 0), /* WEST2 */
+ INTEL_GPP(1, 24, 47, 24), /* WEST3 */
+ INTEL_GPP(2, 48, 70, 48), /* WEST01 */
+ INTEL_GPP(3, 71, 90, 71), /* WEST5 */
+ INTEL_GPP(4, 91, 96, 91), /* WESTC */
+ INTEL_GPP(5, 97, 101, 97), /* WESTC_DFX */
+ INTEL_GPP(6, 102, 111, 102), /* WESTA */
+ INTEL_GPP(7, 112, 123, 112), /* WESTB */
+ INTEL_GPP(8, 124, 143, 124), /* WESTD */
+ INTEL_GPP(9, 144, 144, 144), /* WESTD_PECI */
+ INTEL_GPP(10, 145, 167, 145), /* WESTF */
};
static const struct intel_padgroup cdf_community1_gpps[] = {
- CDF_GPP(0, 168, 191), /* EAST2 */
- CDF_GPP(1, 192, 202), /* EAST3 */
- CDF_GPP(2, 203, 225), /* EAST0 */
- CDF_GPP(3, 226, 236), /* EMMC */
+ INTEL_GPP(0, 168, 191, 168), /* EAST2 */
+ INTEL_GPP(1, 192, 202, 192), /* EAST3 */
+ INTEL_GPP(2, 203, 225, 203), /* EAST0 */
+ INTEL_GPP(3, 226, 236, 226), /* EMMC */
};
static const struct intel_community cdf_communities[] = {
--
2.50.1
next prev parent reply other threads:[~2025-11-11 19:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-11 19:10 [PATCH v1 0/5] pinctrl: intel: Convert the rest to use INTEL_GPP() Andy Shevchenko
2025-11-11 19:10 ` Andy Shevchenko [this message]
2025-11-11 19:10 ` [PATCH v1 2/5] pinctrl: denverton: Switch to INTEL_GPP() macro Andy Shevchenko
2025-11-11 19:10 ` [PATCH v1 3/5] pinctrl: emmitsburg: " Andy Shevchenko
2025-11-11 19:10 ` [PATCH v1 4/5] pinctrl: cherryview: " Andy Shevchenko
2025-11-11 19:10 ` [PATCH v1 5/5] pinctrl: elkhartlake: " Andy Shevchenko
2025-11-12 5:49 ` [PATCH v1 0/5] pinctrl: intel: Convert the rest to use INTEL_GPP() Mika Westerberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251111191214.1378051-2-andriy.shevchenko@linux.intel.com \
--to=andriy.shevchenko@linux.intel.com \
--cc=andy@kernel.org \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mika.westerberg@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).