提交 46146e7d 编写于 作者: D Daniel Tang 提交者: Dmitry Torokhov

Input: nspire-keypad - replace magic offset with define

Signed-off-by: NDaniel Tang <dt.tangr@gmail.com>
Signed-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
上级 9eebed7d
...@@ -122,7 +122,7 @@ static int nspire_keypad_chip_init(struct nspire_keypad *keypad) ...@@ -122,7 +122,7 @@ static int nspire_keypad_chip_init(struct nspire_keypad *keypad)
/* Enable interrupts */ /* Enable interrupts */
keypad->int_mask = 1 << 1; 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 */ /* Disable GPIO interrupts to prevent hanging on touchpad */
/* Possibly used to detect touchpad events */ /* Possibly used to detect touchpad events */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册