Skip to content

Commit c11e90d

Browse files
committed
pinctrl: lakefield: 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 29d06c2 commit c11e90d

1 file changed

Lines changed: 9 additions & 17 deletions

File tree

drivers/pinctrl/intel/pinctrl-lakefield.c

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,6 @@
2121
#define LKF_GPI_IS 0x100
2222
#define LKF_GPI_IE 0x110
2323

24-
#define LKF_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 LKF_COMMUNITY(b, s, e, g) \
3325
INTEL_COMMUNITY_GPPS(b, s, e, g, LKF)
3426

@@ -308,24 +300,24 @@ static const struct pinctrl_pin_desc lkf_pins[] = {
308300
};
309301

310302
static const struct intel_padgroup lkf_community0_gpps[] = {
311-
LKF_GPP(0, 0, 31, 0), /* EAST_0 */
312-
LKF_GPP(1, 32, 59, 32), /* EAST_1 */
303+
INTEL_GPP(0, 0, 31, 0), /* EAST_0 */
304+
INTEL_GPP(1, 32, 59, 32), /* EAST_1 */
313305
};
314306

315307
static const struct intel_padgroup lkf_community1_gpps[] = {
316-
LKF_GPP(0, 60, 91, 64), /* NORTHWEST_0 */
317-
LKF_GPP(1, 92, 123, 96), /* NORTHWEST_1 */
318-
LKF_GPP(2, 124, 148, 128), /* NORTHWEST_2 */
308+
INTEL_GPP(0, 60, 91, 64), /* NORTHWEST_0 */
309+
INTEL_GPP(1, 92, 123, 96), /* NORTHWEST_1 */
310+
INTEL_GPP(2, 124, 148, 128), /* NORTHWEST_2 */
319311
};
320312

321313
static const struct intel_padgroup lkf_community2_gpps[] = {
322-
LKF_GPP(0, 149, 180, 160), /* WEST_0 */
323-
LKF_GPP(1, 181, 212, 192), /* WEST_1 */
324-
LKF_GPP(2, 213, 237, 224), /* WEST_2 */
314+
INTEL_GPP(0, 149, 180, 160), /* WEST_0 */
315+
INTEL_GPP(1, 181, 212, 192), /* WEST_1 */
316+
INTEL_GPP(2, 213, 237, 224), /* WEST_2 */
325317
};
326318

327319
static const struct intel_padgroup lkf_community3_gpps[] = {
328-
LKF_GPP(0, 238, 266, 256), /* SOUTHEAST */
320+
INTEL_GPP(0, 238, 266, 256), /* SOUTHEAST */
329321
};
330322

331323
static const struct intel_community lkf_communities[] = {

0 commit comments

Comments
 (0)