blob: a21413324a3f7bbb55a0f2e002d10f7b2211a7e5 [file] [log] [blame]
Laxman Dewangan8851b9f2013-08-06 19:42:49 +05301/*
2 * This header provides constants for most input bindings.
3 *
4 * Most input bindings include key code, matrix key code format.
5 * In most cases, key code and matrix key code format uses
6 * the standard values/macro defined in this header.
7 */
8
9#ifndef _DT_BINDINGS_INPUT_INPUT_H
10#define _DT_BINDINGS_INPUT_INPUT_H
11
Hans de Goede4f38b9f2015-10-14 17:06:08 -070012#include "linux-event-codes.h"
Laxman Dewangan8851b9f2013-08-06 19:42:49 +053013
14#define MATRIX_KEY(row, col, code) \
15 ((((row) & 0xFF) << 24) | (((col) & 0xFF) << 16) | ((code) & 0xFFFF))
16
17#endif /* _DT_BINDINGS_INPUT_INPUT_H */