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

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

index aa6f904..2ab52b1 100644 (file)
        }
 
 #define CDF_COMMUNITY(b, s, e, g)                      \
-       {                                               \
-               .barno = (b),                           \
-               .padown_offset = CDF_PAD_OWN,           \
-               .padcfglock_offset = CDF_PADCFGLOCK,    \
-               .hostown_offset = CDF_HOSTSW_OWN,       \
-               .is_offset = CDF_GPI_IS,                \
-               .ie_offset = CDF_GPI_IE,                \
-               .pin_base = (s),                        \
-               .npins = ((e) - (s) + 1),               \
-               .gpps = (g),                            \
-               .ngpps = ARRAY_SIZE(g),                 \
-       }
+       INTEL_COMMUNITY_GPPS(b, s, e, g, CDF)
 
 /* Cedar Fork PCH */
 static const struct pinctrl_pin_desc cdf_pins[] = {