]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
pinctrl: emmitsburg: Switch to INTEL_GPP() macro
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 11 Nov 2025 19:10:27 +0000 (20:10 +0100)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 12 Nov 2025 06:28:36 +0000 (07:28 +0100)
Replace custom macro with the recently defined INTEL_GPP().

Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/pinctrl/intel/pinctrl-emmitsburg.c

index 9d8a32aca177e331294d133961a6d8e4079b287e..ba06a9ec239aa983fd806b66dbd987ed8c5b979a 100644 (file)
 #define EBG_GPI_IS     0x200
 #define EBG_GPI_IE     0x210
 
-#define EBG_GPP(r, s, e)                               \
-       {                                               \
-               .reg_num = (r),                         \
-               .base = (s),                            \
-               .size = ((e) - (s) + 1),                \
-       }
-
 #define EBG_COMMUNITY(b, s, e, g)                      \
        INTEL_COMMUNITY_GPPS(b, s, e, g, EBG)
 
@@ -311,31 +304,31 @@ static const struct pinctrl_pin_desc ebg_pins[] = {
 };
 
 static const struct intel_padgroup ebg_community0_gpps[] = {
-       EBG_GPP(0, 0, 20),      /* GPP_A */
-       EBG_GPP(1, 21, 44),     /* GPP_B */
-       EBG_GPP(2, 45, 65),     /* SPI */
+       INTEL_GPP(0, 0, 20, 0),         /* GPP_A */
+       INTEL_GPP(1, 21, 44, 21),       /* GPP_B */
+       INTEL_GPP(2, 45, 65, 45),       /* SPI */
 };
 
 static const struct intel_padgroup ebg_community1_gpps[] = {
-       EBG_GPP(0, 66, 87),     /* GPP_C */
-       EBG_GPP(1, 88, 111),    /* GPP_D */
+       INTEL_GPP(0, 66, 87, 66),       /* GPP_C */
+       INTEL_GPP(1, 88, 111, 88),      /* GPP_D */
 };
 
 static const struct intel_padgroup ebg_community3_gpps[] = {
-       EBG_GPP(0, 112, 135),   /* GPP_E */
-       EBG_GPP(1, 136, 145),   /* JTAG */
+       INTEL_GPP(0, 112, 135, 112),    /* GPP_E */
+       INTEL_GPP(1, 136, 145, 136),    /* JTAG */
 };
 
 static const struct intel_padgroup ebg_community4_gpps[] = {
-       EBG_GPP(0, 146, 165),   /* GPP_H */
-       EBG_GPP(1, 166, 183),   /* GPP_J */
+       INTEL_GPP(0, 146, 165, 146),    /* GPP_H */
+       INTEL_GPP(1, 166, 183, 166),    /* GPP_J */
 };
 
 static const struct intel_padgroup ebg_community5_gpps[] = {
-       EBG_GPP(0, 184, 207),   /* GPP_I */
-       EBG_GPP(1, 208, 225),   /* GPP_L */
-       EBG_GPP(2, 226, 243),   /* GPP_M */
-       EBG_GPP(3, 244, 261),   /* GPP_N */
+       INTEL_GPP(0, 184, 207, 184),    /* GPP_I */
+       INTEL_GPP(1, 208, 225, 208),    /* GPP_L */
+       INTEL_GPP(2, 226, 243, 226),    /* GPP_M */
+       INTEL_GPP(3, 244, 261, 244),    /* GPP_N */
 };
 
 static const struct intel_community ebg_communities[] = {