Skip to content

Commit 46146e7

Browse files
tangrsdtor
authored andcommitted
Input: nspire-keypad - replace magic offset with define
Signed-off-by: Daniel Tang <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 9eebed7 commit 46146e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/input/keyboard/nspire-keypad.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ static int nspire_keypad_chip_init(struct nspire_keypad *keypad)
122122

123123
/* Enable interrupts */
124124
keypad->int_mask = 1 << 1;
125-
writel(keypad->int_mask, keypad->reg_base + 0xc);
125+
writel(keypad->int_mask, keypad->reg_base + KEYPAD_INTMSK);
126126

127127
/* Disable GPIO interrupts to prevent hanging on touchpad */
128128
/* Possibly used to detect touchpad events */

0 commit comments

Comments
 (0)