1*c66ec88fSEmmanuel Vadot /* SPDX-License-Identifier: GPL-2.0 */ 2*c66ec88fSEmmanuel Vadot /* 3*c66ec88fSEmmanuel Vadot * This header provides constants for most input bindings. 4*c66ec88fSEmmanuel Vadot * 5*c66ec88fSEmmanuel Vadot * Most input bindings include key code, matrix key code format. 6*c66ec88fSEmmanuel Vadot * In most cases, key code and matrix key code format uses 7*c66ec88fSEmmanuel Vadot * the standard values/macro defined in this header. 8*c66ec88fSEmmanuel Vadot */ 9*c66ec88fSEmmanuel Vadot 10*c66ec88fSEmmanuel Vadot #ifndef _DT_BINDINGS_INPUT_INPUT_H 11*c66ec88fSEmmanuel Vadot #define _DT_BINDINGS_INPUT_INPUT_H 12*c66ec88fSEmmanuel Vadot 13*c66ec88fSEmmanuel Vadot #include "linux-event-codes.h" 14*c66ec88fSEmmanuel Vadot 15*c66ec88fSEmmanuel Vadot #define MATRIX_KEY(row, col, code) \ 16*c66ec88fSEmmanuel Vadot ((((row) & 0xFF) << 24) | (((col) & 0xFF) << 16) | ((code) & 0xFFFF)) 17*c66ec88fSEmmanuel Vadot 18*c66ec88fSEmmanuel Vadot #endif /* _DT_BINDINGS_INPUT_INPUT_H */ 19