Input: nspire-keypad - replace magic offset with define
authorDaniel Tang <dt.tangr@gmail.com>
Sun, 7 Jul 2013 04:53:26 +0000 (21:53 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 7 Jul 2013 04:57:33 +0000 (21:57 -0700)
Signed-off-by: Daniel Tang <dt.tangr@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/nspire-keypad.c

index e0a1339..20d872d 100644 (file)
@@ -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 */