mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-11-01 09:13:37 +00:00
pinctrl: alderlake: Replace ADL_COMMUNITY() by INTEL_COMMUNITY_GPPS()
Use INTEL_COMMUNITY_GPPS() common macro instead custom ADL_COMMUNITY(). Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
This commit is contained in:
parent
100b54e471
commit
6b432d13ea
1 changed files with 2 additions and 16 deletions
|
|
@ -34,25 +34,11 @@
|
|||
.gpio_base = (g), \
|
||||
}
|
||||
|
||||
#define ADL_COMMUNITY(b, s, e, g, v) \
|
||||
{ \
|
||||
.barno = (b), \
|
||||
.padown_offset = ADL_##v##_PAD_OWN, \
|
||||
.padcfglock_offset = ADL_##v##_PADCFGLOCK, \
|
||||
.hostown_offset = ADL_##v##_HOSTSW_OWN, \
|
||||
.is_offset = ADL_##v##_GPI_IS, \
|
||||
.ie_offset = ADL_##v##_GPI_IE, \
|
||||
.pin_base = (s), \
|
||||
.npins = ((e) - (s) + 1), \
|
||||
.gpps = (g), \
|
||||
.ngpps = ARRAY_SIZE(g), \
|
||||
}
|
||||
|
||||
#define ADL_N_COMMUNITY(b, s, e, g) \
|
||||
ADL_COMMUNITY(b, s, e, g, N)
|
||||
INTEL_COMMUNITY_GPPS(b, s, e, g, ADL_N)
|
||||
|
||||
#define ADL_S_COMMUNITY(b, s, e, g) \
|
||||
ADL_COMMUNITY(b, s, e, g, S)
|
||||
INTEL_COMMUNITY_GPPS(b, s, e, g, ADL_S)
|
||||
|
||||
/* Alder Lake-N */
|
||||
static const struct pinctrl_pin_desc adln_pins[] = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue