mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-25 10:59:05 +00:00
4f38b9f2f4
Add a symlink to uapi/linux/linux-event-codes.h, and include that instead of (re)defining all the evdev type and code values in dt-bindings/input/input.h. This way we do not need to keep all the event codes synced manually. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
18 lines
499 B
C
18 lines
499 B
C
/*
|
|
* 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 */
|