Simon Glass | eb27dfb | 2014-10-30 20:25:45 -0600 | [diff] [blame] | 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 | |
Hans de Goede | 6804021 | 2016-03-16 13:41:23 +0100 | [diff] [blame] | 12 | #include "linux-event-codes.h" |
Simon Glass | eb27dfb | 2014-10-30 20:25:45 -0600 | [diff] [blame] | 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 */ |