diff options
author | Chao Xie <chao.xie@marvell.com> | 2014-05-13 06:20:48 +0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2014-05-14 10:12:44 +0400 |
commit | c5ec1948eaab7c1c0f412b2804e65a637f1c7443 (patch) | |
tree | 162430f40334def173bc4c94541aa2570cc5b8c1 /drivers/input/serio/q40kbd.c | |
parent | ba77341cfd180022e60f08f55025ad59a8387538 (diff) | |
download | linux-c5ec1948eaab7c1c0f412b2804e65a637f1c7443.tar.xz |
Input: pxa27x-keypad - fix generating scancode
The number of columns of pxa27x-keypad used by various boards is not fixed.
When building keymap with call to:
matrix_keypad_build_keymap(keymap_data, NULL,
pdata->matrix_key_rows,
pdata->matrix_key_cols,
keypad->keycodes, input_dev);
it will internally calculate needed row shift and use it to fill the
keymap. Therefore when calculating the "scancode" we should no longer use
constant row shift but also calculate it from number of columns.
Signed-off-by: Chao Xie <chao.xie@marvell.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/serio/q40kbd.c')
0 files changed, 0 insertions, 0 deletions