summaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
authorDaniel Tang <dt.tangr@gmail.com>2013-07-07 06:53:26 +0200
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2013-07-07 06:57:33 +0200
commit46146e7d4b383d5b34014d072553498c7cd52821 (patch)
tree1474debeb76561fca2966f158692c003bd78409a /drivers/input
parentInput: elantech - fix for newer hardware versions (v7) (diff)
downloadlinux-46146e7d4b383d5b34014d072553498c7cd52821.tar.xz
linux-46146e7d4b383d5b34014d072553498c7cd52821.zip
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>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/keyboard/nspire-keypad.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/keyboard/nspire-keypad.c b/drivers/input/keyboard/nspire-keypad.c
index e0a1339e40e6..20d872d6f603 100644
--- a/drivers/input/keyboard/nspire-keypad.c
+++ b/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 */