From: Chao Xie Date: Tue, 13 May 2014 02:20:48 +0000 (-0700) Subject: Input: pxa27x-keypad - fix generating scancode X-Git-Tag: omap-for-v3.16/fixes-against-rc1~120^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5ec1948eaab7c1c0f412b2804e65a637f1c7443;p=pandora-kernel.git 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 Signed-off-by: Dmitry Torokhov --- Reading git-diff-tree failed