Skip to content

Commit

Permalink
Input: nspire-keypad - replace magic offset with define
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Tang <dt.tangr@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
  • Loading branch information
Daniel Tang authored and Dmitry Torokhov committed Jul 7, 2013
1 parent 9eebed7 commit 46146e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/keyboard/nspire-keypad.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 46146e7

Please sign in to comment.