Skip to content

Commit dd0c7bf

Browse files
committed
pinctrl: cherryview: Switch to INTEL_GPP() macro
Replace custom macro with the recently defined INTEL_GPP(). Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
1 parent 6c7a997 commit dd0c7bf

1 file changed

Lines changed: 20 additions & 26 deletions

File tree

drivers/pinctrl/intel/pinctrl-cherryview.c

Lines changed: 20 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,6 @@ struct intel_community_context {
9292

9393
#define PINMODE(m, i) ((m) | ((i) * PINMODE_INVERT_OE))
9494

95-
#define CHV_GPP(start, end) \
96-
{ \
97-
.base = (start), \
98-
.size = (end) - (start) + 1, \
99-
}
100-
10195
#define CHV_COMMUNITY(g, i, a) \
10296
{ \
10397
.gpps = (g), \
@@ -258,13 +252,13 @@ static const struct intel_function southwest_functions[] = {
258252
};
259253

260254
static const struct intel_padgroup southwest_gpps[] = {
261-
CHV_GPP(0, 7),
262-
CHV_GPP(15, 22),
263-
CHV_GPP(30, 37),
264-
CHV_GPP(45, 52),
265-
CHV_GPP(60, 67),
266-
CHV_GPP(75, 82),
267-
CHV_GPP(90, 97),
255+
INTEL_GPP(0, 0, 7, 0),
256+
INTEL_GPP(1, 15, 22, 15),
257+
INTEL_GPP(2, 30, 37, 30),
258+
INTEL_GPP(3, 45, 52, 45),
259+
INTEL_GPP(4, 60, 67, 60),
260+
INTEL_GPP(5, 75, 82, 75),
261+
INTEL_GPP(6, 90, 97, 90),
268262
};
269263

270264
/*
@@ -354,11 +348,11 @@ static const struct pinctrl_pin_desc north_pins[] = {
354348
};
355349

356350
static const struct intel_padgroup north_gpps[] = {
357-
CHV_GPP(0, 8),
358-
CHV_GPP(15, 27),
359-
CHV_GPP(30, 41),
360-
CHV_GPP(45, 56),
361-
CHV_GPP(60, 72),
351+
INTEL_GPP(0, 0, 8, 0),
352+
INTEL_GPP(1, 15, 27, 15),
353+
INTEL_GPP(2, 30, 41, 30),
354+
INTEL_GPP(3, 45, 56, 45),
355+
INTEL_GPP(4, 60, 72, 60),
362356
};
363357

364358
/*
@@ -406,8 +400,8 @@ static const struct pinctrl_pin_desc east_pins[] = {
406400
};
407401

408402
static const struct intel_padgroup east_gpps[] = {
409-
CHV_GPP(0, 11),
410-
CHV_GPP(15, 26),
403+
INTEL_GPP(0, 0, 11, 0),
404+
INTEL_GPP(1, 15, 26, 15),
411405
};
412406

413407
static const struct intel_community east_communities[] = {
@@ -526,12 +520,12 @@ static const struct intel_function southeast_functions[] = {
526520
};
527521

528522
static const struct intel_padgroup southeast_gpps[] = {
529-
CHV_GPP(0, 7),
530-
CHV_GPP(15, 26),
531-
CHV_GPP(30, 35),
532-
CHV_GPP(45, 52),
533-
CHV_GPP(60, 69),
534-
CHV_GPP(75, 85),
523+
INTEL_GPP(0, 0, 7, 0),
524+
INTEL_GPP(1, 15, 26, 15),
525+
INTEL_GPP(2, 30, 35, 30),
526+
INTEL_GPP(3, 45, 52, 45),
527+
INTEL_GPP(4, 60, 69, 60),
528+
INTEL_GPP(5, 75, 85, 75),
535529
};
536530

537531
static const struct intel_community southeast_communities[] = {

0 commit comments

Comments
 (0)