pinctrl: meteorlake: Replace MTL_COMMUNITY() by INTEL_COMMUNITY_GPPS()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 19 Dec 2022 12:26:40 +0000 (14:26 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 27 Dec 2022 19:17:55 +0000 (21:17 +0200)
Use INTEL_COMMUNITY_GPPS() common macro instead custom MTL_COMMUNITY().

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

index 9576dcd1cb29974417c8a07b698b589559960e30..a82f6754c45bf43e36e7b99e2ca15b2a2d71cefc 100644 (file)
 
 #include "pinctrl-intel.h"
 
-#define MTL_PAD_OWN    0x0b0
-#define MTL_PADCFGLOCK 0x110
-#define MTL_HOSTSW_OWN 0x140
-#define MTL_GPI_IS     0x200
-#define MTL_GPI_IE     0x210
+#define MTL_P_PAD_OWN          0x0b0
+#define MTL_P_PADCFGLOCK       0x110
+#define MTL_P_HOSTSW_OWN       0x140
+#define MTL_P_GPI_IS           0x200
+#define MTL_P_GPI_IE           0x210
 
 #define MTL_GPP(r, s, e, g)                            \
        {                                               \
        }
 
 #define MTL_COMMUNITY(b, s, e, g)                      \
-       {                                               \
-               .barno = (b),                           \
-               .padown_offset = MTL_PAD_OWN,           \
-               .padcfglock_offset = MTL_PADCFGLOCK,    \
-               .hostown_offset = MTL_HOSTSW_OWN,       \
-               .is_offset = MTL_GPI_IS,                \
-               .ie_offset = MTL_GPI_IE,                \
-               .pin_base = (s),                        \
-               .npins = ((e) - (s) + 1),               \
-               .gpps = (g),                            \
-               .ngpps = ARRAY_SIZE(g),                 \
-       }
+       INTEL_COMMUNITY_GPPS(b, s, e, g, MTL_P)
 
 /* Meteor Lake-P */
 static const struct pinctrl_pin_desc mtlp_pins[] = {