Skip to content

Commit d99b7a9

Browse files
committed
pinctrl: sunrisepoint: 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 ba64677 commit d99b7a9

1 file changed

Lines changed: 9 additions & 17 deletions

File tree

drivers/pinctrl/intel/pinctrl-sunrisepoint.c

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,6 @@
2828
#define SPT_LP_GPI_IS 0x100
2929
#define SPT_LP_GPI_IE 0x120
3030

31-
#define SPT_H_GPP(r, s, e, g) \
32-
{ \
33-
.reg_num = (r), \
34-
.base = (s), \
35-
.size = ((e) - (s) + 1), \
36-
.gpio_base = (g), \
37-
}
38-
3931
#define SPT_H_COMMUNITY(b, s, e, g) \
4032
INTEL_COMMUNITY_GPPS(b, s, e, g, SPT_H)
4133

@@ -538,21 +530,21 @@ static const struct intel_function spth_functions[] = {
538530
};
539531

540532
static const struct intel_padgroup spth_community0_gpps[] = {
541-
SPT_H_GPP(0, 0, 23, 0), /* GPP_A */
542-
SPT_H_GPP(1, 24, 47, 24), /* GPP_B */
533+
INTEL_GPP(0, 0, 23, 0), /* GPP_A */
534+
INTEL_GPP(1, 24, 47, 24), /* GPP_B */
543535
};
544536

545537
static const struct intel_padgroup spth_community1_gpps[] = {
546-
SPT_H_GPP(0, 48, 71, 48), /* GPP_C */
547-
SPT_H_GPP(1, 72, 95, 72), /* GPP_D */
548-
SPT_H_GPP(2, 96, 108, 96), /* GPP_E */
549-
SPT_H_GPP(3, 109, 132, 120), /* GPP_F */
550-
SPT_H_GPP(4, 133, 156, 144), /* GPP_G */
551-
SPT_H_GPP(5, 157, 180, 168), /* GPP_H */
538+
INTEL_GPP(0, 48, 71, 48), /* GPP_C */
539+
INTEL_GPP(1, 72, 95, 72), /* GPP_D */
540+
INTEL_GPP(2, 96, 108, 96), /* GPP_E */
541+
INTEL_GPP(3, 109, 132, 120), /* GPP_F */
542+
INTEL_GPP(4, 133, 156, 144), /* GPP_G */
543+
INTEL_GPP(5, 157, 180, 168), /* GPP_H */
552544
};
553545

554546
static const struct intel_padgroup spth_community3_gpps[] = {
555-
SPT_H_GPP(0, 181, 191, 192), /* GPP_I */
547+
INTEL_GPP(0, 181, 191, 192), /* GPP_I */
556548
};
557549

558550
static const struct intel_community spth_communities[] = {

0 commit comments

Comments
 (0)