projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9eebed7
)
Input: nspire-keypad - replace magic offset with define
author
Daniel Tang
<dt.tangr@gmail.com>
Sun, 7 Jul 2013 04:53:26 +0000
(21:53 -0700)
committer
Dmitry 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
patch
|
blob
|
history
diff --git
a/drivers/input/keyboard/nspire-keypad.c
b/drivers/input/keyboard/nspire-keypad.c
index
e0a1339
..
20d872d
100644
(file)
--- 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 */