Skip to content

Commit 701372c

Browse files
andy-shevlinusw
authored andcommitted
pinctrl: cannonlake: Modify COMMUNITY macros to be consistent
Modify COMMUNITY macros to be consistent with Tiger Lake and others. No functional change intended. Signed-off-by: Andy Shevchenko <[email protected]> Acked-by: Mika Westerberg <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Linus Walleij <[email protected]>
1 parent cb8cc18 commit 701372c

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

drivers/pinctrl/intel/pinctrl-cannonlake.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@
3030
.gpio_base = (g), \
3131
}
3232

33-
#define CNL_COMMUNITY(b, s, e, o, g) \
33+
#define CNL_COMMUNITY(b, s, e, ho, g) \
3434
{ \
3535
.barno = (b), \
3636
.padown_offset = CNL_PAD_OWN, \
3737
.padcfglock_offset = CNL_PADCFGLOCK, \
38-
.hostown_offset = (o), \
38+
.hostown_offset = (ho), \
3939
.is_offset = CNL_GPI_IS, \
4040
.ie_offset = CNL_GPI_IE, \
4141
.pin_base = (s), \
@@ -44,10 +44,10 @@
4444
.ngpps = ARRAY_SIZE(g), \
4545
}
4646

47-
#define CNLLP_COMMUNITY(b, s, e, g) \
47+
#define CNL_LP_COMMUNITY(b, s, e, g) \
4848
CNL_COMMUNITY(b, s, e, CNL_LP_HOSTSW_OWN, g)
4949

50-
#define CNLH_COMMUNITY(b, s, e, g) \
50+
#define CNL_H_COMMUNITY(b, s, e, g) \
5151
CNL_COMMUNITY(b, s, e, CNL_H_HOSTSW_OWN, g)
5252

5353
/* Cannon Lake-H */
@@ -449,10 +449,10 @@ static const struct intel_function cnlh_functions[] = {
449449
};
450450

451451
static const struct intel_community cnlh_communities[] = {
452-
CNLH_COMMUNITY(0, 0, 50, cnlh_community0_gpps),
453-
CNLH_COMMUNITY(1, 51, 154, cnlh_community1_gpps),
454-
CNLH_COMMUNITY(2, 155, 248, cnlh_community3_gpps),
455-
CNLH_COMMUNITY(3, 249, 298, cnlh_community4_gpps),
452+
CNL_H_COMMUNITY(0, 0, 50, cnlh_community0_gpps),
453+
CNL_H_COMMUNITY(1, 51, 154, cnlh_community1_gpps),
454+
CNL_H_COMMUNITY(2, 155, 248, cnlh_community3_gpps),
455+
CNL_H_COMMUNITY(3, 249, 298, cnlh_community4_gpps),
456456
};
457457

458458
static const struct intel_pinctrl_soc_data cnlh_soc_data = {
@@ -810,9 +810,9 @@ static const struct intel_padgroup cnllp_community4_gpps[] = {
810810
};
811811

812812
static const struct intel_community cnllp_communities[] = {
813-
CNLLP_COMMUNITY(0, 0, 67, cnllp_community0_gpps),
814-
CNLLP_COMMUNITY(1, 68, 180, cnllp_community1_gpps),
815-
CNLLP_COMMUNITY(2, 181, 243, cnllp_community4_gpps),
813+
CNL_LP_COMMUNITY(0, 0, 67, cnllp_community0_gpps),
814+
CNL_LP_COMMUNITY(1, 68, 180, cnllp_community1_gpps),
815+
CNL_LP_COMMUNITY(2, 181, 243, cnllp_community4_gpps),
816816
};
817817

818818
static const struct intel_pinctrl_soc_data cnllp_soc_data = {

0 commit comments

Comments
 (0)