Skip to content

Commit d772897

Browse files
committed
pinctrl: denverton: Switch to INTEL_GPP() macro
Replace custom macro with the recently defined INTEL_GPP(). Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
1 parent ce884de commit d772897

1 file changed

Lines changed: 7 additions & 14 deletions

File tree

drivers/pinctrl/intel/pinctrl-denverton.c

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

24-
#define DNV_GPP(n, s, e) \
25-
{ \
26-
.reg_num = (n), \
27-
.base = (s), \
28-
.size = ((e) - (s) + 1), \
29-
}
30-
3124
#define DNV_COMMUNITY(b, s, e, g) \
3225
INTEL_COMMUNITY_GPPS(b, s, e, g, DNV)
3326

@@ -222,16 +215,16 @@ static const struct intel_function dnv_functions[] = {
222215
};
223216

224217
static const struct intel_padgroup dnv_north_gpps[] = {
225-
DNV_GPP(0, 0, 31), /* North ALL_0 */
226-
DNV_GPP(1, 32, 40), /* North ALL_1 */
218+
INTEL_GPP(0, 0, 31, 0), /* North ALL_0 */
219+
INTEL_GPP(1, 32, 40, 32), /* North ALL_1 */
227220
};
228221

229222
static const struct intel_padgroup dnv_south_gpps[] = {
230-
DNV_GPP(0, 41, 58), /* South DFX */
231-
DNV_GPP(1, 59, 90), /* South GPP0_0 */
232-
DNV_GPP(2, 91, 111), /* South GPP0_1 */
233-
DNV_GPP(3, 112, 143), /* South GPP1_0 */
234-
DNV_GPP(4, 144, 153), /* South GPP1_1 */
223+
INTEL_GPP(0, 41, 58, 41), /* South DFX */
224+
INTEL_GPP(1, 59, 90, 59), /* South GPP0_0 */
225+
INTEL_GPP(2, 91, 111, 91), /* South GPP0_1 */
226+
INTEL_GPP(3, 112, 143, 112), /* South GPP1_0 */
227+
INTEL_GPP(4, 144, 153, 144), /* South GPP1_1 */
235228
};
236229

237230
static const struct intel_community dnv_communities[] = {

0 commit comments

Comments
 (0)