blob: bcf0ae100f21af8cfe0afc49d0a9107d4dfa62d7 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Laxman Dewangan8851b9f2013-08-06 19:42:49 +05302/*
3 * This header provides constants for most input bindings.
4 *
5 * Most input bindings include key code, matrix key code format.
6 * In most cases, key code and matrix key code format uses
7 * the standard values/macro defined in this header.
8 */
9
10#ifndef _DT_BINDINGS_INPUT_INPUT_H
11#define _DT_BINDINGS_INPUT_INPUT_H
12
Hans de Goede4f38b9f2015-10-14 17:06:08 -070013#include "linux-event-codes.h"
Laxman Dewangan8851b9f2013-08-06 19:42:49 +053014
15#define MATRIX_KEY(row, col, code) \
16 ((((row) & 0xFF) << 24) | (((col) & 0xFF) << 16) | ((code) & 0xFFFF))
17
18#endif /* _DT_BINDINGS_INPUT_INPUT_H */