From 46146e7d4b383d5b34014d072553498c7cd52821 Mon Sep 17 00:00:00 2001
From: Daniel Tang
Date: Sat, 6 Jul 2013 21:53:26 -0700
Subject: Input: nspire-keypad - replace magic offset with define
Signed-off-by: Daniel Tang
Signed-off-by: Dmitry Torokhov
---
drivers/input/keyboard/nspire-keypad.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'drivers/input')
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 */
--
cgit v1.2.3