Commit 6a066263 authored by Andy Shevchenko's avatar Andy Shevchenko

pinctrl: lewisburg: Replace LBG_COMMUNITY() by INTEL_COMMUNITY_SIZE()

Use INTEL_COMMUNITY_SIZE() common macro instead custom LBG_COMMUNITY().
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
parent 4bc3e431
...@@ -21,17 +21,7 @@ ...@@ -21,17 +21,7 @@
#define LBG_GPI_IE 0x110 #define LBG_GPI_IE 0x110
#define LBG_COMMUNITY(b, s, e) \ #define LBG_COMMUNITY(b, s, e) \
{ \ INTEL_COMMUNITY_SIZE(b, s, e, 24, 3, LBG)
.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), \
}
/* Lewisburg */ /* Lewisburg */
static const struct pinctrl_pin_desc lbg_pins[] = { static const struct pinctrl_pin_desc lbg_pins[] = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment