pinctrl: lewisburg: Replace LBG_COMMUNITY() by INTEL_COMMUNITY_SIZE()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 19 Dec 2022 12:26:39 +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_SIZE() common macro instead custom LBG_COMMUNITY().

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

index ad4b446..7aac1bb 100644 (file)
 #define LBG_GPI_IE     0x110
 
 #define LBG_COMMUNITY(b, s, e)                         \
-       {                                               \
-               .barno = (b),                           \
-               .padown_offset = LBG_PAD_OWN,           \
-               .padcfglock_offset = LBG_PADCFGLOCK,    \
-               .hostown_offset = LBG_HOSTSW_OWN,       \
-               .is_offset = LBG_GPI_IS,                \
-               .ie_offset = LBG_GPI_IE,                \
-               .gpp_size = 24,                         \
-               .pin_base = (s),                        \
-               .npins = ((e) - (s) + 1),               \
-       }
+       INTEL_COMMUNITY_SIZE(b, s, e, 24, 3, LBG)
 
 /* Lewisburg */
 static const struct pinctrl_pin_desc lbg_pins[] = {