Skip to content

Commit 29d06c2

Browse files
committed
pinctrl: jasperlake: Switch to INTEL_GPP() macro
Replace custom macro with the recently defined INTEL_GPP(). Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
1 parent 51327d6 commit 29d06c2

1 file changed

Lines changed: 13 additions & 21 deletions

File tree

drivers/pinctrl/intel/pinctrl-jasperlake.c

Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,6 @@
2121
#define JSL_GPI_IS 0x100
2222
#define JSL_GPI_IE 0x120
2323

24-
#define JSL_GPP(r, s, e, g) \
25-
{ \
26-
.reg_num = (r), \
27-
.base = (s), \
28-
.size = ((e) - (s) + 1), \
29-
.gpio_base = (g), \
30-
}
31-
3224
#define JSL_COMMUNITY(b, s, e, g) \
3325
INTEL_COMMUNITY_GPPS(b, s, e, g, JSL)
3426

@@ -283,28 +275,28 @@ static const struct pinctrl_pin_desc jsl_pins[] = {
283275
};
284276

285277
static const struct intel_padgroup jsl_community0_gpps[] = {
286-
JSL_GPP(0, 0, 19, 320), /* GPP_F */
287-
JSL_GPP(1, 20, 28, INTEL_GPIO_BASE_NOMAP), /* SPI */
288-
JSL_GPP(2, 29, 54, 32), /* GPP_B */
289-
JSL_GPP(3, 55, 75, 64), /* GPP_A */
290-
JSL_GPP(4, 76, 83, 96), /* GPP_S */
291-
JSL_GPP(5, 84, 91, 128), /* GPP_R */
278+
INTEL_GPP(0, 0, 19, 320), /* GPP_F */
279+
INTEL_GPP(1, 20, 28, INTEL_GPIO_BASE_NOMAP), /* SPI */
280+
INTEL_GPP(2, 29, 54, 32), /* GPP_B */
281+
INTEL_GPP(3, 55, 75, 64), /* GPP_A */
282+
INTEL_GPP(4, 76, 83, 96), /* GPP_S */
283+
INTEL_GPP(5, 84, 91, 128), /* GPP_R */
292284
};
293285

294286
static const struct intel_padgroup jsl_community1_gpps[] = {
295-
JSL_GPP(0, 92, 115, 160), /* GPP_H */
296-
JSL_GPP(1, 116, 141, 192), /* GPP_D */
297-
JSL_GPP(2, 142, 170, 224), /* vGPIO */
298-
JSL_GPP(3, 171, 194, 256), /* GPP_C */
287+
INTEL_GPP(0, 92, 115, 160), /* GPP_H */
288+
INTEL_GPP(1, 116, 141, 192), /* GPP_D */
289+
INTEL_GPP(2, 142, 170, 224), /* vGPIO */
290+
INTEL_GPP(3, 171, 194, 256), /* GPP_C */
299291
};
300292

301293
static const struct intel_padgroup jsl_community4_gpps[] = {
302-
JSL_GPP(0, 195, 200, INTEL_GPIO_BASE_NOMAP), /* HVCMOS */
303-
JSL_GPP(1, 201, 224, 288), /* GPP_E */
294+
INTEL_GPP(0, 195, 200, INTEL_GPIO_BASE_NOMAP), /* HVCMOS */
295+
INTEL_GPP(1, 201, 224, 288), /* GPP_E */
304296
};
305297

306298
static const struct intel_padgroup jsl_community5_gpps[] = {
307-
JSL_GPP(0, 225, 232, INTEL_GPIO_BASE_ZERO), /* GPP_G */
299+
INTEL_GPP(0, 225, 232, INTEL_GPIO_BASE_ZERO), /* GPP_G */
308300
};
309301

310302
static const struct intel_community jsl_communities[] = {

0 commit comments

Comments
 (0)