Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cfaea567 authored by Trilok Soni's avatar Trilok Soni Committed by Dmitry Torokhov
Browse files

Input: matrix_keypad - increase the limit of rows and columns



Some keyboard controllers support more than 16 columns and rows.
Increase the limit to 32.

Signed-off-by: default avatarTrilok Soni <tsoni@codeaurora.org>
Acked-by: default avatarEric Miao <eric.y.miao@gmail.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 4b6d4434
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4,8 +4,8 @@
#include <linux/types.h>
#include <linux/input.h>

#define MATRIX_MAX_ROWS		16
#define MATRIX_MAX_COLS		16
#define MATRIX_MAX_ROWS		32
#define MATRIX_MAX_COLS		32

#define KEY(row, col, val)	((((row) & (MATRIX_MAX_ROWS - 1)) << 24) |\
				 (((col) & (MATRIX_MAX_COLS - 1)) << 16) |\