https://github.com/torvalds/linux
Raw File
Tip revision: 08332893e37af6ae779367e78e444f8f9571511d authored by Linus Torvalds on 22 May 2017, 02:30:23 UTC
Linux 4.12-rc2
Tip revision: 0833289
input.h
/*
 * This header provides constants for most input bindings.
 *
 * Most input bindings include key code, matrix key code format.
 * In most cases, key code and matrix key code format uses
 * the standard values/macro defined in this header.
 */

#ifndef _DT_BINDINGS_INPUT_INPUT_H
#define _DT_BINDINGS_INPUT_INPUT_H

#include "linux-event-codes.h"

#define MATRIX_KEY(row, col, code)	\
	((((row) & 0xFF) << 24) | (((col) & 0xFF) << 16) | ((code) & 0xFFFF))

#endif /* _DT_BINDINGS_INPUT_INPUT_H */
back to top