Skip to content

Commit e1a57ab

Browse files
committed
pinctrl: intel: Introduce INTEL_GPP() macro
A new macro will be used for the further refactoring of the drivers. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
1 parent ce27278 commit e1a57ab

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

drivers/pinctrl/intel/pinctrl-intel.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,15 @@ enum {
7676
INTEL_GPIO_BASE_MATCH = 0,
7777
};
7878

79+
/* Initialise struct intel_padgroup */
80+
#define INTEL_GPP(r, s, e, g) \
81+
{ \
82+
.reg_num = (r), \
83+
.base = (s), \
84+
.size = ((e) - (s) + 1), \
85+
.gpio_base = (g), \
86+
}
87+
7988
/**
8089
* struct intel_community - Intel pin community description
8190
* @barno: MMIO BAR number where registers for this community reside

0 commit comments

Comments
 (0)