Browse Source

Input: nspire-keypad - replace magic offset with define

Signed-off-by: Daniel Tang <dt.tangr@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Daniel Tang 12 years ago
parent
commit
46146e7d4b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/input/keyboard/nspire-keypad.c

+ 1 - 1
drivers/input/keyboard/nspire-keypad.c

@@ -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 */