Linux Audio

Check our new training course

Loading...
v6.13.7
 1/* SPDX-License-Identifier: GPL-2.0 */
 2/*
 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
13#include "linux-event-codes.h"
14
15#define MATRIX_KEY(row, col, code)	\
16	((((row) & 0xFF) << 24) | (((col) & 0xFF) << 16) | ((code) & 0xFFFF))
17
18#endif /* _DT_BINDINGS_INPUT_INPUT_H */
v4.6
 
 1/*
 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
12#include "linux-event-codes.h"
13
14#define MATRIX_KEY(row, col, code)	\
15	((((row) & 0xFF) << 24) | (((col) & 0xFF) << 16) | ((code) & 0xFFFF))
16
17#endif /* _DT_BINDINGS_INPUT_INPUT_H */