matrix_keypad: Increase the max limit of rows and columns

Some keyboard controller have support for more than
16 columns and rows.

Change-Id: I3fd207bfcb21648e1e6601c20588907a6c45270e
Signed-off-by: Trilok Soni <tsoni@codeaurora.org>
(cherry picked from commit 1fcc71dd2431913af3a5baab5d2e25ffc318a5ad)

Conflicts:

	include/linux/input/matrix_keypad.h
This commit is contained in:
Trilok Soni 2010-06-28 19:49:15 +05:30 committed by Stephen Boyd
parent 71a224e616
commit 0906d07116

View file

@ -5,12 +5,12 @@
#include <linux/input.h>
#include <linux/of.h>
#define MATRIX_MAX_ROWS 32
#define MATRIX_MAX_COLS 32
#define MATRIX_MAX_ROWS 18
#define MATRIX_MAX_COLS 18
#define KEY(row, col, val) ((((row) & (MATRIX_MAX_ROWS - 1)) << 24) |\
(((col) & (MATRIX_MAX_COLS - 1)) << 16) |\
((val) & 0xffff))
#define KEY(row, col, val) ((((row) % (MATRIX_MAX_ROWS)) << 24) |\
(((col) % (MATRIX_MAX_COLS)) << 16) |\
(val & 0xffff))
#define KEY_ROW(k) (((k) >> 24) & 0xff)
#define KEY_COL(k) (((k) >> 16) & 0xff)