Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 46146e7d authored by Daniel Tang's avatar Daniel Tang Committed by Dmitry Torokhov
Browse files

Input: nspire-keypad - replace magic offset with define

parent 9eebed7d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -122,7 +122,7 @@ static int nspire_keypad_chip_init(struct nspire_keypad *keypad)

	/* Enable interrupts */
	keypad->int_mask = 1 << 1;
	writel(keypad->int_mask, keypad->reg_base + 0xc);
	writel(keypad->int_mask, keypad->reg_base + KEYPAD_INTMSK);

	/* Disable GPIO interrupts to prevent hanging on touchpad */
	/* Possibly used to detect touchpad events */